mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Vesync switch humidifier to property (#135949)
This commit is contained in:
parent
02347d5d36
commit
85bea5b70e
@ -120,12 +120,12 @@ class VeSyncHumidifierHA(VeSyncBaseEntity, HumidifierEntity):
|
|||||||
@property
|
@property
|
||||||
def target_humidity(self) -> int:
|
def target_humidity(self) -> int:
|
||||||
"""Return the humidity we try to reach."""
|
"""Return the humidity we try to reach."""
|
||||||
return self.device.config["auto_target_humidity"]
|
return self.device.auto_humidity
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def mode(self) -> str | None:
|
def mode(self) -> str | None:
|
||||||
"""Get the current preset mode."""
|
"""Get the current preset mode."""
|
||||||
return _get_ha_mode(self.device.details["mode"])
|
return _get_ha_mode(self.device.mode)
|
||||||
|
|
||||||
def set_humidity(self, humidity: int) -> None:
|
def set_humidity(self, humidity: int) -> None:
|
||||||
"""Set the target humidity of the device."""
|
"""Set the target humidity of the device."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user