added validation for polling interval

This commit is contained in:
Patrick762 committed 2023-08-26 15:54:33 +02:00
1 parent 15216e1268
commit a5ced35d32
6 files changed
+22 -11

No files matched your search

+1 -1
View File
@@ -131,7 +131,7 @@ class BluettiSensor(CoordinatorEntity, SensorEntity):
"""Handle updated data from the coordinator."""
_LOGGER.debug("Updating state of %s", self._attr_unique_id)
if not isinstance(self.coordinator.data, dict):
_LOGGER.error(
_LOGGER.debug(
"Invalid data from coordinator (sensor.%s)", self._attr_unique_id
)
self._attr_available = False