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

@@ -110,7 +110,7 @@ class MoldIndicator(Entity):
def mold_indicator_sensors_state_listener(entity, old_state, new_state):
"""Handle for state changes for dependent sensors."""
_LOGGER.debug(
"Sensor state change for %s that had old state %s " "and new state %s",
"Sensor state change for %s that had old state %s and new state %s",
entity,
old_state,
new_state,
@@ -188,7 +188,7 @@ class MoldIndicator(Entity):
# Return an error if the sensor change its state to Unknown.
if state.state == STATE_UNKNOWN:
_LOGGER.error(
"Unable to parse temperature sensor %s with state:" " %s",
"Unable to parse temperature sensor %s with state: %s",
state.entity_id,
state.state,
)
@@ -199,7 +199,7 @@ class MoldIndicator(Entity):
if temp is None:
_LOGGER.error(
"Unable to parse temperature sensor %s with state:" " %s",
"Unable to parse temperature sensor %s with state: %s",
state.entity_id,
state.state,
)
@@ -211,7 +211,7 @@ class MoldIndicator(Entity):
if unit == TEMP_CELSIUS:
return temp
_LOGGER.error(
"Temp sensor %s has unsupported unit: %s (allowed: %s, " "%s)",
"Temp sensor %s has unsupported unit: %s (allowed: %s, %s)",
state.entity_id,
unit,
TEMP_CELSIUS,
@@ -306,7 +306,7 @@ class MoldIndicator(Entity):
if None in (self._dewpoint, self._calib_factor) or self._calib_factor == 0:
_LOGGER.debug(
"Invalid inputs - dewpoint: %s," " calibration-factor: %s",
"Invalid inputs - dewpoint: %s, calibration-factor: %s",
self._dewpoint,
self._calib_factor,
)