From 31479904e1c19597b9b7d7e46bb4b0dcbe550bd7 Mon Sep 17 00:00:00 2001 From: Brendan Dahl Date: Fri, 29 Nov 2024 09:06:29 -0500 Subject: [PATCH] feat: add 311i max model to fan count --- .../ha_blueair/blueair_aws_data_update_coordinator.py | 2 +- custom_components/ha_blueair/manifest.json | 2 +- requirements.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/custom_components/ha_blueair/blueair_aws_data_update_coordinator.py b/custom_components/ha_blueair/blueair_aws_data_update_coordinator.py index d1e8897..eea55cc 100644 --- a/custom_components/ha_blueair/blueair_aws_data_update_coordinator.py +++ b/custom_components/ha_blueair/blueair_aws_data_update_coordinator.py @@ -71,7 +71,7 @@ def speed_count(self) -> int: """Return the max fan speed.""" if self.model == ModelEnum.HUMIDIFIER_I35: return 64 - elif self.model == ModelEnum.PROTECT_7470I: + elif self.model in [ModelEnum.MAX_311I, ModelEnum.PROTECT_7470I]: return 91 else: return 100 diff --git a/custom_components/ha_blueair/manifest.json b/custom_components/ha_blueair/manifest.json index cda8b54..ef74975 100644 --- a/custom_components/ha_blueair/manifest.json +++ b/custom_components/ha_blueair/manifest.json @@ -6,6 +6,6 @@ "documentation": "https://github.com/dahlb/ha_blueair", "iot_class": "cloud_polling", "issue_tracker": "https://github.com/dahlb/ha_blueair/issues", - "requirements": ["blueair-api==1.12.1"], + "requirements": ["blueair-api==1.13.0"], "version": "1.10.3" } diff --git a/requirements.txt b/requirements.txt index 782ae7b..202b3de 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ homeassistant==2024.8.0 ruff==0.8.0 -blueair-api==1.12.1 +blueair-api==1.13.0