From 5934167e15c20efec617a40ccaaa83e91ea54f0b Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Tue, 3 May 2022 12:16:57 -0700 Subject: [PATCH] Bump aioslimproto to 2.0.0 (#71265) --- homeassistant/components/slimproto/manifest.json | 2 +- homeassistant/components/slimproto/media_player.py | 4 ++-- requirements_all.txt | 2 +- requirements_test_all.txt | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/homeassistant/components/slimproto/manifest.json b/homeassistant/components/slimproto/manifest.json index 557428919a4..eb4ab00f18d 100644 --- a/homeassistant/components/slimproto/manifest.json +++ b/homeassistant/components/slimproto/manifest.json @@ -4,7 +4,7 @@ "config_flow": true, "iot_class": "local_push", "documentation": "https://www.home-assistant.io/integrations/slimproto", - "requirements": ["aioslimproto==1.0.2"], + "requirements": ["aioslimproto==2.0.0"], "codeowners": ["@marcelveldt"], "after_dependencies": ["media_source"] } diff --git a/homeassistant/components/slimproto/media_player.py b/homeassistant/components/slimproto/media_player.py index d41d10432db..6b1989830e2 100644 --- a/homeassistant/components/slimproto/media_player.py +++ b/homeassistant/components/slimproto/media_player.py @@ -118,7 +118,7 @@ class SlimProtoPlayer(MediaPlayerEntity): EventType.PLAYER_CONNECTED, EventType.PLAYER_DISCONNECTED, EventType.PLAYER_NAME_RECEIVED, - EventType.PLAYER_RPC_EVENT, + EventType.PLAYER_CLI_EVENT, ), player_filter=self.player.player_id, ) @@ -205,7 +205,7 @@ class SlimProtoPlayer(MediaPlayerEntity): if event.type == EventType.PLAYER_CONNECTED: # player reconnected, update our player object self.player = self.slimserver.get_player(event.player_id) - if event.type == EventType.PLAYER_RPC_EVENT: + if event.type == EventType.PLAYER_CLI_EVENT: # rpc event from player such as a button press, # forward on the eventbus for others to handle dev_id = self.registry_entry.device_id if self.registry_entry else None diff --git a/requirements_all.txt b/requirements_all.txt index e212a63b559..438c951d214 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -244,7 +244,7 @@ aiosenz==1.0.0 aioshelly==2.0.0 # homeassistant.components.slimproto -aioslimproto==1.0.2 +aioslimproto==2.0.0 # homeassistant.components.steamist aiosteamist==0.3.1 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index c6e1065a52a..b012f795c9e 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -210,7 +210,7 @@ aiosenz==1.0.0 aioshelly==2.0.0 # homeassistant.components.slimproto -aioslimproto==1.0.2 +aioslimproto==2.0.0 # homeassistant.components.steamist aiosteamist==0.3.1