Remove unnecessary string literal concatenations (#30360)

This commit is contained in:
Ville Skyttä authored and GitHub committed 2020-01-02 21:17:10 +02:00
1 parent cac750066a
commit e6388e186c
183 files changed
+362 -393

No files matched your search

+2 -2
View File
@@ -102,7 +102,7 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
)
except KeyError:
_LOGGER.error(
"Unable to detect data type for %s sensor, " "try a custom type",
"Unable to detect data type for %s sensor, try a custom type",
register.get(CONF_NAME),
)
continue
@@ -119,7 +119,7 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
if register.get(CONF_COUNT) * 2 != size:
_LOGGER.error(
"Structure size (%d bytes) mismatch registers count " "(%d words)",
"Structure size (%d bytes) mismatch registers count (%d words)",
size,
register.get(CONF_COUNT),
)
+1 -1
View File
@@ -236,7 +236,7 @@ class ModbusRegisterSwitch(ModbusCoilSwitch):
self._is_on = False
else:
_LOGGER.error(
"Unexpected response from hub %s, slave %s " "register %s, got 0x%2x",
"Unexpected response from hub %s, slave %s register %s, got 0x%2x",
self._hub.name,
self._slave,
self._verify_register,