Fix point availability (#61144)

This commit is contained in:
Fredrik Erlandsson
2021-12-07 12:54:15 -08:00
committed by Paulus Schoutsen
parent 8da3756602
commit fa447332c6
+1 -1
View File
@@ -185,7 +185,7 @@ class MinutPointClient:
async def _sync(self):
"""Update local list of devices."""
if not await self._client.update() and self._is_available:
if not await self._client.update():
self._is_available = False
_LOGGER.warning("Device is unavailable")
async_dispatcher_send(self._hass, SIGNAL_UPDATE_ENTITY)