Fix ESPHome color modes for older firmwares (#108870)
This commit is contained in:
parent
2b799830db
commit
3447e7fddb
2 changed files with 13 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue