diff --git a/custom_components/sws12500/const.py b/custom_components/sws12500/const.py index 20e73b1..266826e 100644 --- a/custom_components/sws12500/const.py +++ b/custom_components/sws12500/const.py @@ -83,6 +83,10 @@ CH8_BATTERY: Final = "ch8_battery" HEAT_INDEX: Final = "heat_index" CHILL_INDEX: Final = "chill_index" WBGT_TEMP: Final = "wbgt_temp" +HCHO: Final = "hcho" +VOC: Final = "voc" +T9_BATTERY: Final = "t9_battery" # T9 sensors are HCHO and VOC +T9_CONN: Final = "t9_conn" # Health specific constants diff --git a/custom_components/sws12500/utils.py b/custom_components/sws12500/utils.py index d9530d5..035be3b 100644 --- a/custom_components/sws12500/utils.py +++ b/custom_components/sws12500/utils.py @@ -24,6 +24,8 @@ from homeassistant.helpers.translation import async_get_translations from .const import ( AZIMUT, + CONNECTION_GATED_SENSORS, + DATABASE_PATH, DEV_DBG, OUTSIDE_HUMIDITY, OUTSIDE_TEMP, @@ -92,12 +94,7 @@ async def translated_notification( persistent_notification.async_create(hass, message, _translations[localize_title], notification_id) -async def update_options( - hass: HomeAssistant, - entry: ConfigEntry, - update_key: str, - update_value: str | list[str] | bool, -) -> bool: +async def update_options(hass: HomeAssistant, entry: ConfigEntry, update_key, update_value) -> bool: """Update config.options entry.""" conf = {**entry.options} conf[update_key] = update_value