mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 14:17:45 +00:00
Ignore unsupported devices (room sensors, floor heating) in ViCare integration (#112106)
* ignore unsupported devices * Update __init__.py * move unsupported device to const * fix ruff
This commit is contained in:
parent
943996b60b
commit
e0a8a9d551
@ -20,7 +20,13 @@ from homeassistant.core import HomeAssistant
|
|||||||
from homeassistant.exceptions import ConfigEntryAuthFailed
|
from homeassistant.exceptions import ConfigEntryAuthFailed
|
||||||
from homeassistant.helpers.storage import STORAGE_DIR
|
from homeassistant.helpers.storage import STORAGE_DIR
|
||||||
|
|
||||||
from .const import DEFAULT_CACHE_DURATION, DEVICE_LIST, DOMAIN, PLATFORMS
|
from .const import (
|
||||||
|
DEFAULT_CACHE_DURATION,
|
||||||
|
DEVICE_LIST,
|
||||||
|
DOMAIN,
|
||||||
|
PLATFORMS,
|
||||||
|
UNSUPPORTED_DEVICES,
|
||||||
|
)
|
||||||
from .types import ViCareDevice
|
from .types import ViCareDevice
|
||||||
from .utils import get_device
|
from .utils import get_device
|
||||||
|
|
||||||
@ -109,5 +115,5 @@ def get_supported_devices(
|
|||||||
return [
|
return [
|
||||||
device_config
|
device_config
|
||||||
for device_config in devices
|
for device_config in devices
|
||||||
if device_config.getModel() not in ["Heatbox1", "Heatbox2_SRC"]
|
if device_config.getModel() not in UNSUPPORTED_DEVICES
|
||||||
]
|
]
|
||||||
|
@ -14,6 +14,15 @@ PLATFORMS = [
|
|||||||
Platform.WATER_HEATER,
|
Platform.WATER_HEATER,
|
||||||
]
|
]
|
||||||
|
|
||||||
|
UNSUPPORTED_DEVICES = [
|
||||||
|
"Heatbox1",
|
||||||
|
"Heatbox2_SRC",
|
||||||
|
"E3_FloorHeatingCircuitChannel",
|
||||||
|
"E3_FloorHeatingCircuitDistributorBox",
|
||||||
|
"E3_RoomControl_One_522",
|
||||||
|
"E3_RoomSensor",
|
||||||
|
]
|
||||||
|
|
||||||
DEVICE_LIST = "device_list"
|
DEVICE_LIST = "device_list"
|
||||||
VICARE_NAME = "ViCare"
|
VICARE_NAME = "ViCare"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user