From 61a70e49f2a076f5418863dae6882a1eb460278c Mon Sep 17 00:00:00 2001 From: Bram Date: Tue, 17 Sep 2024 10:41:56 +0200 Subject: [PATCH] fix: add cover domain to source entity selection --- custom_components/powercalc/power_profile/power_profile.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/custom_components/powercalc/power_profile/power_profile.py b/custom_components/powercalc/power_profile/power_profile.py index f88709848..23c7fd14b 100644 --- a/custom_components/powercalc/power_profile/power_profile.py +++ b/custom_components/powercalc/power_profile/power_profile.py @@ -9,6 +9,7 @@ from homeassistant.components.binary_sensor import DOMAIN as BINARY_SENSOR_DOMAIN from homeassistant.components.camera import DOMAIN as CAMERA_DOMAIN +from homeassistant.components.cover import DOMAIN as COVER_DOMAIN from homeassistant.components.light import DOMAIN as LIGHT_DOMAIN from homeassistant.components.media_player import DOMAIN as MEDIA_PLAYER_DOMAIN from homeassistant.components.switch import DOMAIN as SWITCH_DOMAIN @@ -30,7 +31,6 @@ class DeviceType(StrEnum): CAMERA = "camera" - COVER_DOMAIN = "cover_domain" COVER = "cover" LIGHT = "light" SMART_SWITCH = "smart_switch" @@ -47,6 +47,7 @@ class SubProfileMatcherType(StrEnum): DOMAIN_DEVICE_TYPE = { CAMERA_DOMAIN: DeviceType.CAMERA, + COVER_DOMAIN: DeviceType.COVER, LIGHT_DOMAIN: DeviceType.LIGHT, SWITCH_DOMAIN: DeviceType.SMART_SWITCH, MEDIA_PLAYER_DOMAIN: DeviceType.SMART_SPEAKER,