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),
)