mirror of
https://github.com/home-assistant/core.git
synced 2025-07-13 16:27:08 +00:00
Handle connection issue for netatmo (#21346)
* Handle connection issue for netatmo * reduce logging
This commit is contained in:
parent
6743ef10ab
commit
b588c1fe1c
@ -189,6 +189,13 @@ class NetAtmoSensor(Entity):
|
||||
def update(self):
|
||||
"""Get the latest data from NetAtmo API and updates the states."""
|
||||
self.netatmo_data.update()
|
||||
if self.netatmo_data.data is None:
|
||||
if self._state is None:
|
||||
return
|
||||
_LOGGER.warning("No data found for %s", self.module_name)
|
||||
self._state = None
|
||||
return
|
||||
|
||||
data = self.netatmo_data.data.get(self.module_name)
|
||||
|
||||
if data is None:
|
||||
|
Loading…
x
Reference in New Issue
Block a user