From 95934aab71a4d6e360d13ec71f28f85f1f787954 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johan=20Nenz=C3=A9n?= Date: Wed, 4 May 2022 20:46:07 +0200 Subject: [PATCH] Adds support for Well A5 (#33) * Update api.py * Update README.md --- README.md | 1 + custom_components/wellbeing/api.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/README.md b/README.md index 3545502..048232a 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,7 @@ A custom component designed for [Home Assistant](https://www.home-assistant.io) - Pure A9 Air Purifier - Well A7 Air Purifier +- Well A5 Air Purifier ### Install with HACS (recommended) Do you you have [HACS][hacs] installed? Just search for Electrolux Wellbeing and install it direct from HACS. HACS will keep track of updates and you can easly upgrade this component to latest version. diff --git a/custom_components/wellbeing/api.py b/custom_components/wellbeing/api.py index 631ed67..1f6a692 100644 --- a/custom_components/wellbeing/api.py +++ b/custom_components/wellbeing/api.py @@ -236,6 +236,8 @@ def speed_range(self) -> tuple: return 1, 5 if self.model == "PUREA9": return 1, 9 + if self.model == "WELLA5": + return 1, 5 return 0, 0