Skip to content

Commit 7be3f9d

Browse files
author
Marcus Terasa
committed
Fix logging
1 parent 81c1f8b commit 7be3f9d

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

custom_components/foxess_api/sensor.py

+8-4
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,16 @@ def native_value(self) -> datetime | StateType:
8888
try:
8989
return self.entity_description.state(self.coordinator.data)
9090
except KeyError:
91-
LOGGER.warning("Could not get state for %s. If this error persists, check API for changes. ",
92-
"(Current version is %s)", self.entity_description.key, API_VERSION)
91+
LOGGER.warning("Could not get state for %s. If this error persists, "
92+
"check API for changes. (Current version is %s)",
93+
self.entity_description.key,
94+
API_VERSION)
9395
return None
9496
except TypeError:
95-
LOGGER.warning("Type error for %s. If this error persists, check API for changes. ",
96-
"(Current version is %s)", self.entity_description.key, API_VERSION)
97+
LOGGER.warning("Type error for %s. If this error persists, "
98+
"check API for changes. (Current version is %s)",
99+
self.entity_description.key,
100+
API_VERSION)
97101
return None
98102
except Exception as e:
99103
LOGGER.error(e)

0 commit comments

Comments
 (0)