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 -3
View File
@@ -205,14 +205,13 @@ class InfluxSensorData:
points = list(self.influx.query(self.query).get_points())
if not points:
_LOGGER.warning(
"Query returned no points, sensor state set " "to UNKNOWN: %s",
self.query,
"Query returned no points, sensor state set to UNKNOWN: %s", self.query,
)
self.value = None
else:
if len(points) > 1:
_LOGGER.warning(
"Query returned multiple points, only first " "one shown: %s",
"Query returned multiple points, only first one shown: %s",
self.query,
)
self.value = points[0].get("value")