Return 'None' for light attributes when off instead of removing them (#101946)

This commit is contained in:
Paul Bottein 2023-10-19 01:08:08 +02:00 committed by GitHub
parent 606b76c681
commit c98c18f25e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
25 changed files with 363 additions and 111 deletions

View file

@ -270,6 +270,11 @@ async def test_config_entry(
"friendly_name": "Koogeek-LS1-20833F Light Strip",
"supported_color_modes": ["hs"],
"supported_features": 0,
"brightness": None,
"color_mode": None,
"hs_color": None,
"rgb_color": None,
"xy_color": None,
},
"entity_id": "light.koogeek_ls1_20833f_light_strip",
"last_changed": ANY,
@ -541,6 +546,11 @@ async def test_device(
"friendly_name": "Koogeek-LS1-20833F Light Strip",
"supported_color_modes": ["hs"],
"supported_features": 0,
"brightness": None,
"color_mode": None,
"hs_color": None,
"rgb_color": None,
"xy_color": None,
},
"entity_id": "light.koogeek_ls1_20833f_light_strip",
"last_changed": ANY,