Skip to content

Commit

Permalink
fix: add cover domain to source entity selection
Browse files Browse the repository at this point in the history
  • Loading branch information
bramstroker committed Sep 17, 2024
1 parent 6e0b246 commit 61a70e4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom_components/powercalc/power_profile/power_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -30,7 +31,6 @@

class DeviceType(StrEnum):
CAMERA = "camera"
COVER_DOMAIN = "cover_domain"
COVER = "cover"
LIGHT = "light"
SMART_SWITCH = "smart_switch"
Expand All @@ -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,
Expand Down

0 comments on commit 61a70e4

Please sign in to comment.