From 1a9c98e837bf7fc5e629103f76b2d56ca07e75d7 Mon Sep 17 00:00:00 2001 From: Mike <7278201+mike391@users.noreply.github.com> Date: Mon, 2 Oct 2023 11:53:54 -0400 Subject: [PATCH] Add support for Levoit Vital 100S Purifier (#101273) Add support for Levoit Vital 100S Purifier. --- homeassistant/components/vesync/const.py | 13 ++++++++----- homeassistant/components/vesync/fan.py | 3 +++ 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/homeassistant/components/vesync/const.py b/homeassistant/components/vesync/const.py index f87f1cf3a8a..a0e5b9da52e 100644 --- a/homeassistant/components/vesync/const.py +++ b/homeassistant/components/vesync/const.py @@ -36,9 +36,12 @@ SKU_TO_BASE_DEVICE = { "LAP-C601S-WUS": "Core600S", # Alt ID Model Core600S "LAP-C601S-WUSR": "Core600S", # Alt ID Model Core600S "LAP-C601S-WEU": "Core600S", # Alt ID Model Core600S, - "LAP-V201S-AASR": "Vital200S", - "LAP-V201S-WJP": "Vital200S", - "LAP-V201S-WEU": "Vital200S", - "LAP-V201S-WUS": "Vital200S", - "LAP-V201-AUSR": "Vital200S", + "Vital200S": "Vital200S", + "LAP-V201S-AASR": "Vital200S", # Alt ID Model Vital200S + "LAP-V201S-WJP": "Vital200S", # Alt ID Model Vital200S + "LAP-V201S-WEU": "Vital200S", # Alt ID Model Vital200S + "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, } diff --git a/homeassistant/components/vesync/fan.py b/homeassistant/components/vesync/fan.py index 87934ced81f..326e7daf12c 100644 --- a/homeassistant/components/vesync/fan.py +++ b/homeassistant/components/vesync/fan.py @@ -28,6 +28,7 @@ DEV_TYPE_TO_HA = { "Core400S": "fan", "Core600S": "fan", "Vital200S": "fan", + "Vital100S": "fan", } FAN_MODE_AUTO = "auto" @@ -41,6 +42,7 @@ PRESET_MODES = { "Core400S": [FAN_MODE_AUTO, FAN_MODE_SLEEP], "Core600S": [FAN_MODE_AUTO, FAN_MODE_SLEEP], "Vital200S": [FAN_MODE_AUTO, FAN_MODE_SLEEP, FAN_MODE_PET], + "Vital100S": [FAN_MODE_AUTO, FAN_MODE_SLEEP, FAN_MODE_PET], } SPEED_RANGE = { # off is not included "LV-PUR131S": (1, 3), @@ -49,6 +51,7 @@ SPEED_RANGE = { # off is not included "Core400S": (1, 4), "Core600S": (1, 4), "Vital200S": (1, 4), + "Vital100S": (1, 4), }