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
@@ -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")
|
||||
Reference in new issue
Block a user