From 9990a2542ef8e0a830ce4289a1ceb9af5dbca774 Mon Sep 17 00:00:00 2001 From: marcelveldt Date: Sun, 13 Oct 2019 03:21:15 +0200 Subject: [PATCH] some typoes --- music_assistant/homeassistant.py | 4 ++-- music_assistant/models/player.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/music_assistant/homeassistant.py b/music_assistant/homeassistant.py index 45730033..f5bedf5f 100644 --- a/music_assistant/homeassistant.py +++ b/music_assistant/homeassistant.py @@ -78,7 +78,7 @@ class HomeAssistant(): self.http_session = aiohttp.ClientSession( loop=self.mass.event_loop, connector=aiohttp.TCPConnector(verify_ssl=False)) self.mass.event_loop.create_task(self.__hass_websocket()) - await self.mass.add_event_listener(self.mass_event, "player updated") + await self.mass.add_event_listener(self.mass_event, "player changed") self.mass.event_loop.create_task(self.__get_sources()) async def get_state_async(self, entity_id, attribute='state'): @@ -112,7 +112,7 @@ class HomeAssistant(): async def mass_event(self, msg, msg_details): ''' received event from mass ''' - if msg == "player updated": + if msg == "player changed": await self.publish_player(msg_details) async def hass_event(self, event_type, event_data): diff --git a/music_assistant/models/player.py b/music_assistant/models/player.py index dbbf0d9e..320fcfd2 100755 --- a/music_assistant/models/player.py +++ b/music_assistant/models/player.py @@ -514,7 +514,7 @@ class Player(): async def update(self): ''' [PROTECTED] signal player updated ''' await self.queue.update() - LOGGER.debug("player updated: %s" % self.name) + LOGGER.debug("player changed: %s" % self.name) await self.mass.signal_event('player changed', self) self.get_player_settings() -- 2.34.1