From 85bea5b70eedb03ad5810466571e0ef580b22f43 Mon Sep 17 00:00:00 2001 From: cdnninja Date: Sun, 19 Jan 2025 03:43:16 -0700 Subject: [PATCH] Vesync switch humidifier to property (#135949) --- homeassistant/components/vesync/humidifier.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/vesync/humidifier.py b/homeassistant/components/vesync/humidifier.py index aef92f73ea5..9c54afdfb82 100644 --- a/homeassistant/components/vesync/humidifier.py +++ b/homeassistant/components/vesync/humidifier.py @@ -120,12 +120,12 @@ class VeSyncHumidifierHA(VeSyncBaseEntity, HumidifierEntity): @property def target_humidity(self) -> int: """Return the humidity we try to reach.""" - return self.device.config["auto_target_humidity"] + return self.device.auto_humidity @property def mode(self) -> str | None: """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: """Set the target humidity of the device."""