From 3de9c425f636627caf3ff423bf0e5df8a522cde0 Mon Sep 17 00:00:00 2001 From: jjlawren Date: Thu, 23 Dec 2021 14:07:29 -0500 Subject: [PATCH] Bump soco to 0.25.2 (#62691) --- homeassistant/components/sonos/manifest.json | 2 +- homeassistant/components/sonos/speaker.py | 4 ++-- homeassistant/components/sonos/switch.py | 2 +- requirements_all.txt | 2 +- requirements_test_all.txt | 2 +- tests/components/sonos/conftest.py | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/homeassistant/components/sonos/manifest.json b/homeassistant/components/sonos/manifest.json index 00006ab4e90..d4fce01fd78 100644 --- a/homeassistant/components/sonos/manifest.json +++ b/homeassistant/components/sonos/manifest.json @@ -3,7 +3,7 @@ "name": "Sonos", "config_flow": true, "documentation": "https://www.home-assistant.io/integrations/sonos", - "requirements": ["soco==0.25.1"], + "requirements": ["soco==0.25.2"], "dependencies": ["ssdp"], "after_dependencies": ["plex", "zeroconf"], "zeroconf": ["_sonos._tcp.local."], diff --git a/homeassistant/components/sonos/speaker.py b/homeassistant/components/sonos/speaker.py index 8cd2abcf2b2..ffc0d08a1b4 100644 --- a/homeassistant/components/sonos/speaker.py +++ b/homeassistant/components/sonos/speaker.py @@ -482,7 +482,7 @@ class SonosSpeaker: for bool_var in ( "dialog_level", - "night_mode", + "night_level", "sub_enabled", "surround_enabled", ): @@ -965,7 +965,7 @@ class SonosSpeaker: self.volume = self.soco.volume self.muted = self.soco.mute self.night_mode = self.soco.night_mode - self.dialog_level = self.soco.dialog_mode + self.dialog_level = self.soco.dialog_level self.bass = self.soco.bass self.treble = self.soco.treble diff --git a/homeassistant/components/sonos/switch.py b/homeassistant/components/sonos/switch.py index e92263991ab..ad98523258a 100644 --- a/homeassistant/components/sonos/switch.py +++ b/homeassistant/components/sonos/switch.py @@ -36,7 +36,7 @@ ATTR_INCLUDE_LINKED_ZONES = "include_linked_zones" ATTR_CROSSFADE = "cross_fade" ATTR_NIGHT_SOUND = "night_mode" -ATTR_SPEECH_ENHANCEMENT = "dialog_mode" +ATTR_SPEECH_ENHANCEMENT = "dialog_level" ATTR_STATUS_LIGHT = "status_light" ATTR_SUB_ENABLED = "sub_enabled" ATTR_SURROUND_ENABLED = "surround_enabled" diff --git a/requirements_all.txt b/requirements_all.txt index f19a9aa6e6c..6fd2af8cc74 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -2185,7 +2185,7 @@ smhi-pkg==1.0.15 snapcast==2.1.3 # homeassistant.components.sonos -soco==0.25.1 +soco==0.25.2 # homeassistant.components.solaredge_local solaredge-local==0.2.0 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index a4bee163175..97e821bb4ef 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -1291,7 +1291,7 @@ smarthab==0.21 smhi-pkg==1.0.15 # homeassistant.components.sonos -soco==0.25.1 +soco==0.25.2 # homeassistant.components.solaredge solaredge==0.0.2 diff --git a/tests/components/sonos/conftest.py b/tests/components/sonos/conftest.py index f7f8d67589f..18c5366d4ae 100644 --- a/tests/components/sonos/conftest.py +++ b/tests/components/sonos/conftest.py @@ -68,7 +68,7 @@ def soco_fixture(music_library, speaker_info, battery_info, alarm_clock): mock_soco.alarmClock = alarm_clock mock_soco.mute = False mock_soco.night_mode = True - mock_soco.dialog_mode = True + mock_soco.dialog_level = True mock_soco.volume = 19 mock_soco.bass = 1 mock_soco.treble = -1