Skip to content

Commit a09f948

Browse files
authored
Update humidifier.py
added unique_id property
1 parent 4fbd109 commit a09f948

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

custom_components/midea_dehumidifier/humidifier.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
For more details please refer to the documentation at
44
https://github.com/barban-dev/midea_inventor_dehumidifier
55
"""
6-
VERSION = '1.0.0'
6+
VERSION = '1.0.1'
77

88
import logging
99
from typing import List, Optional
@@ -62,10 +62,6 @@
6262
#SUPPORT_FLAGS = 0
6363
SUPPORT_FLAGS = SUPPORT_MODES
6464

65-
ATTR_DEHUMI_ION = "dehumi_ion"
66-
ATTR_DEHUMI_MODE = "dehumi_mode"
67-
ATTR_DEHUMI_FAN_SPEED = "dehumi_fan_speed"
68-
6965
#TODO: in midea_dehumi python lib the range 30-70 is hard coded (fix it)
7066
MIN_HUMITIDY = 35
7167
MAX_HUMITIDY = 70
@@ -194,6 +190,15 @@ def __init__(self, hass, client, targetDevice):
194190
#else:
195191
# _LOGGER.error("midea_dehumidifier: get_device_status error")
196192

193+
@property
194+
def unique_id(self):
195+
"""Return the unique id."""
196+
return self._unique_id
197+
198+
@property
199+
def name(self):
200+
"""Return the name of the humidity device."""
201+
return self._name
197202

198203
@property
199204
def supported_features(self):
@@ -206,11 +211,6 @@ def should_poll(self):
206211
#get device's status by polling it: Midea Web API lacks of notification capability
207212
return True
208213

209-
@property
210-
def name(self):
211-
"""Return the name of the humidity device."""
212-
return self._name
213-
214214
@property
215215
def target_humidity(self):
216216
"""Return the humidity we try to reach."""

0 commit comments

Comments
 (0)