Fix ESPHome color modes for older firmwares (#108870)

This commit is contained in:
J. Nick Koston 2024-01-25 10:18:53 -10:00 committed by GitHub
parent 2b799830db
commit 3447e7fddb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 13 additions and 1 deletions

View file

@ -1865,7 +1865,7 @@ async def test_light_no_color_modes(
state = hass.states.get("light.test_mylight")
assert state is not None
assert state.state == STATE_ON
assert state.attributes[ATTR_SUPPORTED_COLOR_MODES] == [ColorMode.UNKNOWN]
assert state.attributes[ATTR_SUPPORTED_COLOR_MODES] == [ColorMode.ONOFF]
await hass.services.async_call(
LIGHT_DOMAIN,