Remove unnecessary string literal concatenations (#30360)
This commit is contained in:
1 parent
cac750066a
commit
e6388e186c
183 files changed
+362
-393
No files matched your search
@@ -223,7 +223,7 @@ class BinarySensorTemplate(BinarySensorDevice):
|
||||
):
|
||||
# Common during HA startup - so just a warning
|
||||
_LOGGER.warning(
|
||||
"Could not render template %s, " "the state is unknown", self._name
|
||||
"Could not render template %s, the state is unknown", self._name
|
||||
)
|
||||
return
|
||||
_LOGGER.error("Could not render template %s: %s", self._name, ex)
|
||||
@@ -259,7 +259,7 @@ class BinarySensorTemplate(BinarySensorDevice):
|
||||
):
|
||||
# Common during HA startup - so just a warning
|
||||
_LOGGER.warning(
|
||||
"Could not render %s template %s," " the state is unknown.",
|
||||
"Could not render %s template %s, the state is unknown.",
|
||||
friendly_property_name,
|
||||
self._name,
|
||||
)
|
||||
|
||||
@@ -437,8 +437,7 @@ class CoverTemplate(CoverDevice):
|
||||
if state < 0 or state > 100:
|
||||
self._tilt_value = None
|
||||
_LOGGER.error(
|
||||
"Tilt value must be between 0 and 100." " Value was: %.2f",
|
||||
state,
|
||||
"Tilt value must be between 0 and 100. Value was: %.2f", state,
|
||||
)
|
||||
else:
|
||||
self._tilt_value = state
|
||||
@@ -466,7 +465,7 @@ class CoverTemplate(CoverDevice):
|
||||
):
|
||||
# Common during HA startup - so just a warning
|
||||
_LOGGER.warning(
|
||||
"Could not render %s template %s," " the state is unknown.",
|
||||
"Could not render %s template %s, the state is unknown.",
|
||||
friendly_property_name,
|
||||
self._name,
|
||||
)
|
||||
|
||||
@@ -320,7 +320,7 @@ class LightTemplate(Light):
|
||||
):
|
||||
# Common during HA startup - so just a warning
|
||||
_LOGGER.warning(
|
||||
"Could not render %s template %s," " the state is unknown.",
|
||||
"Could not render %s template %s, the state is unknown.",
|
||||
friendly_property_name,
|
||||
self._name,
|
||||
)
|
||||
|
||||
@@ -230,7 +230,7 @@ class SensorTemplate(Entity):
|
||||
):
|
||||
# Common during HA startup - so just a warning
|
||||
_LOGGER.warning(
|
||||
"Could not render template %s," " the state is unknown.", self._name
|
||||
"Could not render template %s, the state is unknown.", self._name
|
||||
)
|
||||
else:
|
||||
self._state = None
|
||||
@@ -268,7 +268,7 @@ class SensorTemplate(Entity):
|
||||
):
|
||||
# Common during HA startup - so just a warning
|
||||
_LOGGER.warning(
|
||||
"Could not render %s template %s," " the state is unknown.",
|
||||
"Could not render %s template %s, the state is unknown.",
|
||||
friendly_property_name,
|
||||
self._name,
|
||||
)
|
||||
|
||||
@@ -233,7 +233,7 @@ class SwitchTemplate(SwitchDevice):
|
||||
):
|
||||
# Common during HA startup - so just a warning
|
||||
_LOGGER.warning(
|
||||
"Could not render %s template %s," " the state is unknown.",
|
||||
"Could not render %s template %s, the state is unknown.",
|
||||
friendly_property_name,
|
||||
self._name,
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user