mirror of
https://github.com/home-assistant/core.git
synced 2025-11-14 13:30:43 +00:00
Handle unavailable input_select in Google Assistant (#38611)
This commit is contained in:
@@ -1515,6 +1515,11 @@ async def test_modes_input_select(hass):
|
||||
assert helpers.get_google_type(input_select.DOMAIN, None) is not None
|
||||
assert trait.ModesTrait.supported(input_select.DOMAIN, None, None)
|
||||
|
||||
trt = trait.ModesTrait(
|
||||
hass, State("input_select.bla", "unavailable"), BASIC_CONFIG,
|
||||
)
|
||||
assert trt.sync_attributes() == {"availableModes": []}
|
||||
|
||||
trt = trait.ModesTrait(
|
||||
hass,
|
||||
State(
|
||||
|
||||
Reference in New Issue
Block a user