Add support for Sonos subwoofer gain controls (#68334)

This commit is contained in:
jjlawren 2022-03-18 12:12:10 -05:00 committed by GitHub
parent 7174e7897c
commit dbb79e2937
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 19 additions and 3 deletions

View file

@ -150,6 +150,7 @@ class SonosSpeaker:
self.dialog_level: bool | None = None
self.night_mode: bool | None = None
self.sub_enabled: bool | None = None
self.sub_gain: int | None = None
self.surround_enabled: bool | None = None
# Misc features
@ -490,7 +491,7 @@ class SonosSpeaker:
if bool_var in variables:
setattr(self, bool_var, variables[bool_var] == "1")
for int_var in ("audio_delay", "bass", "treble"):
for int_var in ("audio_delay", "bass", "treble", "sub_gain"):
if int_var in variables:
setattr(self, int_var, variables[int_var])