2022-04-03 12:13:03 +00:00
|
|
|
"""Integration platform for recorder."""
|
|
|
|
from __future__ import annotations
|
|
|
|
|
|
|
|
from homeassistant.core import HomeAssistant, callback
|
|
|
|
|
|
|
|
from . import (
|
|
|
|
ATTR_EFFECT_LIST,
|
2023-02-21 20:23:53 +00:00
|
|
|
ATTR_MAX_COLOR_TEMP_KELVIN,
|
2022-04-03 12:13:03 +00:00
|
|
|
ATTR_MAX_MIREDS,
|
2023-02-21 20:23:53 +00:00
|
|
|
ATTR_MIN_COLOR_TEMP_KELVIN,
|
2022-04-03 12:13:03 +00:00
|
|
|
ATTR_MIN_MIREDS,
|
|
|
|
ATTR_SUPPORTED_COLOR_MODES,
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
@callback
|
|
|
|
def exclude_attributes(hass: HomeAssistant) -> set[str]:
|
|
|
|
"""Exclude static attributes from being recorded in the database."""
|
|
|
|
return {
|
|
|
|
ATTR_SUPPORTED_COLOR_MODES,
|
|
|
|
ATTR_EFFECT_LIST,
|
|
|
|
ATTR_MIN_MIREDS,
|
|
|
|
ATTR_MAX_MIREDS,
|
2023-02-21 20:23:53 +00:00
|
|
|
ATTR_MIN_COLOR_TEMP_KELVIN,
|
|
|
|
ATTR_MAX_COLOR_TEMP_KELVIN,
|
2022-04-03 12:13:03 +00:00
|
|
|
}
|