mirror of
https://github.com/home-assistant/core.git
synced 2025-04-26 10:17:51 +00:00
Changed to async_schedule_update_ha_state (#12518)
* Changed to async schedule update ha state * Changed to async schedule update ha state * Fixed my fetch error * Added new line at the end
This commit is contained in:
parent
f3748cc4fa
commit
722b9ba49b
@ -404,13 +404,13 @@ class BluesoundPlayer(MediaPlayerDevice):
|
|||||||
# communication is moved to a separate library
|
# communication is moved to a separate library
|
||||||
yield from self.force_update_sync_status()
|
yield from self.force_update_sync_status()
|
||||||
|
|
||||||
self.schedule_update_ha_state()
|
self.async_schedule_update_ha_state()
|
||||||
|
|
||||||
except (asyncio.TimeoutError, ClientError):
|
except (asyncio.TimeoutError, ClientError):
|
||||||
self._is_online = False
|
self._is_online = False
|
||||||
self._last_status_update = None
|
self._last_status_update = None
|
||||||
self._status = None
|
self._status = None
|
||||||
self.schedule_update_ha_state()
|
self.async_schedule_update_ha_state()
|
||||||
_LOGGER.info("Client connection error, marking %s as offline",
|
_LOGGER.info("Client connection error, marking %s as offline",
|
||||||
self._name)
|
self._name)
|
||||||
raise
|
raise
|
||||||
|
Loading…
x
Reference in New Issue
Block a user