Return 'None' for light attributes when off instead of removing them (#101946)
This commit is contained in:
parent
606b76c681
commit
c98c18f25e
25 changed files with 363 additions and 111 deletions
|
@ -8,7 +8,7 @@ import pytest
|
|||
|
||||
from homeassistant.components import light
|
||||
from homeassistant.components.light import (
|
||||
ATTR_EFFECT,
|
||||
ATTR_EFFECT_LIST,
|
||||
ATTR_MAX_COLOR_TEMP_KELVIN,
|
||||
ATTR_MAX_MIREDS,
|
||||
ATTR_MIN_COLOR_TEMP_KELVIN,
|
||||
|
@ -57,7 +57,7 @@ async def test_exclude_attributes(recorder_mock: Recorder, hass: HomeAssistant)
|
|||
assert ATTR_MIN_MIREDS not in state.attributes
|
||||
assert ATTR_MAX_MIREDS not in state.attributes
|
||||
assert ATTR_SUPPORTED_COLOR_MODES not in state.attributes
|
||||
assert ATTR_EFFECT not in state.attributes
|
||||
assert ATTR_EFFECT_LIST not in state.attributes
|
||||
assert ATTR_FRIENDLY_NAME in state.attributes
|
||||
assert ATTR_MAX_COLOR_TEMP_KELVIN not in state.attributes
|
||||
assert ATTR_MIN_COLOR_TEMP_KELVIN not in state.attributes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue