Fix point availability (#61144)

This commit is contained in:
Fredrik Erlandsson 2021-12-07 09:00:30 +01:00 committed by GitHub
parent 8ee2ca8a56
commit c469bf2db9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)