From 7bf2baa236d4949a54ec31b5f561769bb551ac31 Mon Sep 17 00:00:00 2001 From: pleum Date: Tue, 9 Apr 2024 16:18:37 +0700 Subject: [PATCH] Add additional Vital 100S model to vesync (#113838) --- homeassistant/components/vesync/const.py | 3 ++- homeassistant/components/vesync/fan.py | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/vesync/const.py b/homeassistant/components/vesync/const.py index b2fd090e78102..08badae8cd0f2 100644 --- a/homeassistant/components/vesync/const.py +++ b/homeassistant/components/vesync/const.py @@ -55,5 +55,6 @@ "LAP-V201S-WUS": "Vital200S", # Alt ID Model Vital200S "LAP-V201-AUSR": "Vital200S", # Alt ID Model Vital200S "Vital100S": "Vital100S", - "LAP-V102S-WUS": "Vital100S", # Alt ID Model Vital100S, + "LAP-V102S-WUS": "Vital100S", # Alt ID Model Vital100S + "LAP-V102S-AASR": "Vital100S", # Alt ID Model Vital100S } diff --git a/homeassistant/components/vesync/fan.py b/homeassistant/components/vesync/fan.py index 1d8ea6463bfcc..6272c033b4f32 100644 --- a/homeassistant/components/vesync/fan.py +++ b/homeassistant/components/vesync/fan.py @@ -184,6 +184,8 @@ def set_preset_mode(self, preset_mode: str) -> None: self.smartfan.auto_mode() elif preset_mode == FAN_MODE_SLEEP: self.smartfan.sleep_mode() + elif preset_mode == FAN_MODE_PET: + self.smartfan.pet_mode() self.schedule_update_ha_state()