diff --git a/homeassistant/components/livisi/const.py b/homeassistant/components/livisi/const.py index 684510cf7e3..98e0b7816c6 100644 --- a/homeassistant/components/livisi/const.py +++ b/homeassistant/components/livisi/const.py @@ -14,7 +14,7 @@ DEVICE_POLLING_DELAY: Final = 60 LIVISI_STATE_CHANGE: Final = "livisi_state_change" LIVISI_REACHABILITY_CHANGE: Final = "livisi_reachability_change" -PSS_DEVICE_TYPE: Final = "PSS" +SWITCH_DEVICE_TYPES: Final = ["ISS", "ISS2", "PSS", "PSSO"] VRCC_DEVICE_TYPE: Final = "VRCC" MAX_TEMPERATURE: Final = 30.0 diff --git a/homeassistant/components/livisi/switch.py b/homeassistant/components/livisi/switch.py index f5201ab8faa..1a5789ea24e 100644 --- a/homeassistant/components/livisi/switch.py +++ b/homeassistant/components/livisi/switch.py @@ -10,7 +10,7 @@ from homeassistant.exceptions import HomeAssistantError from homeassistant.helpers.dispatcher import async_dispatcher_connect from homeassistant.helpers.entity_platform import AddEntitiesCallback -from .const import DOMAIN, LIVISI_STATE_CHANGE, LOGGER, PSS_DEVICE_TYPE +from .const import DOMAIN, LIVISI_STATE_CHANGE, LOGGER, SWITCH_DEVICE_TYPES from .coordinator import LivisiDataUpdateCoordinator from .entity import LivisiEntity @@ -30,7 +30,7 @@ async def async_setup_entry( entities: list[SwitchEntity] = [] for device in shc_devices: if ( - device["type"] == PSS_DEVICE_TYPE + device["type"] in SWITCH_DEVICE_TYPES and device["id"] not in coordinator.devices ): livisi_switch: SwitchEntity = LivisiSwitch(