mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 09:47:13 +00:00
Alexa: Set Equalizer property to retrievable (#50730)
This commit is contained in:
parent
663c0374ab
commit
5ea2dd8ce3
@ -1920,6 +1920,10 @@ class AlexaEqualizerController(AlexaCapability):
|
||||
"""
|
||||
return [{"name": "mode"}]
|
||||
|
||||
def properties_retrievable(self):
|
||||
"""Return True if properties can be retrieved."""
|
||||
return True
|
||||
|
||||
def get_property(self, name):
|
||||
"""Read and return a property."""
|
||||
if name != "mode":
|
||||
|
@ -3264,6 +3264,7 @@ async def test_media_player_eq_modes(hass):
|
||||
|
||||
eq_capability = get_capability(capabilities, "Alexa.EqualizerController")
|
||||
assert eq_capability is not None
|
||||
assert eq_capability["properties"]["retrievable"]
|
||||
assert "modes" in eq_capability["configurations"]
|
||||
|
||||
eq_modes = eq_capability["configurations"]["modes"]
|
||||
|
Loading…
x
Reference in New Issue
Block a user