From 722b9ba49b0cacbb5a4e7549206d18e0d9c80e07 Mon Sep 17 00:00:00 2001 From: thrawnarn Date: Tue, 20 Feb 2018 00:43:14 +0100 Subject: [PATCH] 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 --- homeassistant/components/media_player/bluesound.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/media_player/bluesound.py b/homeassistant/components/media_player/bluesound.py index 4bd3e43794f..d308b94e64c 100644 --- a/homeassistant/components/media_player/bluesound.py +++ b/homeassistant/components/media_player/bluesound.py @@ -404,13 +404,13 @@ class BluesoundPlayer(MediaPlayerDevice): # communication is moved to a separate library yield from self.force_update_sync_status() - self.schedule_update_ha_state() + self.async_schedule_update_ha_state() except (asyncio.TimeoutError, ClientError): self._is_online = False self._last_status_update = None self._status = None - self.schedule_update_ha_state() + self.async_schedule_update_ha_state() _LOGGER.info("Client connection error, marking %s as offline", self._name) raise