mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Add missing kelvin attributes to light recorder platform (#88561)
This commit is contained in:
@@ -6,7 +6,9 @@ from datetime import timedelta
|
||||
from homeassistant.components import light
|
||||
from homeassistant.components.light import (
|
||||
ATTR_EFFECT,
|
||||
ATTR_MAX_COLOR_TEMP_KELVIN,
|
||||
ATTR_MAX_MIREDS,
|
||||
ATTR_MIN_COLOR_TEMP_KELVIN,
|
||||
ATTR_MIN_MIREDS,
|
||||
ATTR_SUPPORTED_COLOR_MODES,
|
||||
)
|
||||
@@ -53,3 +55,5 @@ async def test_exclude_attributes(recorder_mock: Recorder, hass: HomeAssistant)
|
||||
assert ATTR_SUPPORTED_COLOR_MODES not in state.attributes
|
||||
assert ATTR_EFFECT 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
|
||||
|
||||
Reference in New Issue
Block a user