diff --git a/custom_components/foxess_api/sensor.py b/custom_components/foxess_api/sensor.py index abfbeb9..3dd2f77 100644 --- a/custom_components/foxess_api/sensor.py +++ b/custom_components/foxess_api/sensor.py @@ -88,12 +88,16 @@ def native_value(self) -> datetime | StateType: try: return self.entity_description.state(self.coordinator.data) except KeyError: - LOGGER.warning("Could not get state for %s. If this error persists, check API for changes. ", - "(Current version is %s)", self.entity_description.key, API_VERSION) + LOGGER.warning("Could not get state for %s. If this error persists, " + "check API for changes. (Current version is %s)", + self.entity_description.key, + API_VERSION) return None except TypeError: - LOGGER.warning("Type error for %s. If this error persists, check API for changes. ", - "(Current version is %s)", self.entity_description.key, API_VERSION) + LOGGER.warning("Type error for %s. If this error persists, " + "check API for changes. (Current version is %s)", + self.entity_description.key, + API_VERSION) return None except Exception as e: LOGGER.error(e)