Align MQTT light's default color temperature (#41842)

This commit is contained in:
Erik Montnemery 2020-10-21 15:46:29 +02:00 committed by GitHub
parent a07c0d1605
commit e203896638
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 57 additions and 277 deletions

View file

@ -796,7 +796,7 @@ async def test_effect(hass, mqtt_mock):
mqtt_mock.async_publish.reset_mock()
state = hass.states.get("light.test")
assert state.state == STATE_ON
assert state.attributes.get("effect") == "none"
assert state.attributes.get("effect") is None
await common.async_turn_on(hass, "light.test", effect="rainbow")
@ -942,7 +942,7 @@ async def test_brightness_scale(hass, mqtt_mock):
state = hass.states.get("light.test")
assert state.state == STATE_ON
assert state.attributes.get("brightness") == 255
assert state.attributes.get("brightness") is None
# Turn on the light with brightness
async_fire_mqtt_message(