From 1b7253611919215f4e55d5626eccd8d55544ab41 Mon Sep 17 00:00:00 2001
From: John Parchem <john@parchem.net>
Date: Thu, 28 Oct 2021 19:03:27 -0500
Subject: [PATCH] Add support for Levoit Core 400S air purifier to VeSync
 integration (#57126)

---
 homeassistant/components/vesync/fan.py        | 2 ++
 homeassistant/components/vesync/manifest.json | 2 +-
 requirements_all.txt                          | 2 +-
 requirements_test_all.txt                     | 2 +-
 4 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/homeassistant/components/vesync/fan.py b/homeassistant/components/vesync/fan.py
index c32ac6d2a25..ce7f833c264 100644
--- a/homeassistant/components/vesync/fan.py
+++ b/homeassistant/components/vesync/fan.py
@@ -19,6 +19,7 @@ _LOGGER = logging.getLogger(__name__)
 DEV_TYPE_TO_HA = {
     "LV-PUR131S": "fan",
     "Core200S": "fan",
+    "Core400S": "fan",
 }
 
 FAN_MODE_AUTO = "auto"
@@ -27,6 +28,7 @@ FAN_MODE_SLEEP = "sleep"
 PRESET_MODES = {
     "LV-PUR131S": [FAN_MODE_AUTO, FAN_MODE_SLEEP],
     "Core200S": [FAN_MODE_SLEEP],
+    "Core400S": [FAN_MODE_AUTO, FAN_MODE_SLEEP],
 }
 SPEED_RANGE = (1, 3)  # off is not included
 
diff --git a/homeassistant/components/vesync/manifest.json b/homeassistant/components/vesync/manifest.json
index 70c46d0f02e..cceb0157286 100644
--- a/homeassistant/components/vesync/manifest.json
+++ b/homeassistant/components/vesync/manifest.json
@@ -3,7 +3,7 @@
   "name": "VeSync",
   "documentation": "https://www.home-assistant.io/integrations/vesync",
   "codeowners": ["@markperdue", "@webdjoe", "@thegardenmonkey"],
-  "requirements": ["pyvesync==1.4.0"],
+  "requirements": ["pyvesync==1.4.1"],
   "config_flow": true,
   "iot_class": "cloud_polling"
 }
diff --git a/requirements_all.txt b/requirements_all.txt
index df931fc82a2..230d901957b 100644
--- a/requirements_all.txt
+++ b/requirements_all.txt
@@ -1989,7 +1989,7 @@ pyvera==0.3.13
 pyversasense==0.0.6
 
 # homeassistant.components.vesync
-pyvesync==1.4.0
+pyvesync==1.4.1
 
 # homeassistant.components.vizio
 pyvizio==0.1.57
diff --git a/requirements_test_all.txt b/requirements_test_all.txt
index 81ab8d0a475..045c5bff5ce 100644
--- a/requirements_test_all.txt
+++ b/requirements_test_all.txt
@@ -1166,7 +1166,7 @@ pyuptimerobot==21.9.0
 pyvera==0.3.13
 
 # homeassistant.components.vesync
-pyvesync==1.4.0
+pyvesync==1.4.1
 
 # homeassistant.components.vizio
 pyvizio==0.1.57
-- 
GitLab