[go: nahoru, domu]

Skip to content

Commit

Permalink
Add current_humidity for dehumidifier (#73)
Browse files Browse the repository at this point in the history
Fix humidifier card cannot display current humidity.
  • Loading branch information
r08ertliu committed Feb 26, 2024
1 parent 368af60 commit 9ca33e5
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion custom_components/jcihitachi_tw/humidifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,17 @@ def supported_features(self):
"""Return the list of supported features."""
return self._supported_features

@property
def current_humidity(self):
"""Return the current humidity."""
status = self.hass.data[DOMAIN][UPDATED_DATA][self._thing.name]
if status:
return status.indoor_humidity
return None

@property
def target_humidity(self):
"""Return the current temperature."""
"""Return the target humidity."""
status = self.hass.data[DOMAIN][UPDATED_DATA][self._thing.name]
if status:
return status.target_humidity
Expand Down

0 comments on commit 9ca33e5

Please sign in to comment.