Skip to content

Commit

Permalink
Fix device class of humidifier entity
Browse files Browse the repository at this point in the history
  • Loading branch information
osk2 committed Feb 19, 2024
1 parent f3c3f0e commit 5b1da1f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions custom_components/panasonic_smart_app/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
CONF_UPDATE_INTERVAL = "update_interval"

DEVICE_CLASS_SWITCH = "switch"
DEVICE_CLASS_DEHUMIDIFIER = "dehumidifier"

DEFAULT_UPDATE_INTERVAL = 180

Expand Down
4 changes: 3 additions & 1 deletion custom_components/panasonic_smart_app/humidifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from .const import (
DOMAIN,
DEVICE_TYPE_DEHUMIDIFIER,
DEVICE_CLASS_DEHUMIDIFIER,
DATA_CLIENT,
DATA_COORDINATOR,
LABEL_DEHUMIDIFIER,
Expand Down Expand Up @@ -112,7 +113,8 @@ def is_on(self) -> bool:

@property
def device_class(self) -> str:
return HumidiferDeviceClass.DEHUMIDIFIER
#return HumidiferDeviceClass.DEHUMIDIFIER
return DEVICE_CLASS_DEHUMIDIFIER

async def async_set_mode(self, mode) -> None:
""" Set operation mode """
Expand Down

0 comments on commit 5b1da1f

Please sign in to comment.