From 76a1e979476822ac2abef168cb60b7dddb86b291 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A5le=20Stor=C3=B8=20Hauknes?= <stale.semb@airthings.com> Date: Sun, 14 Jan 2024 21:22:27 +0100 Subject: [PATCH] Update framework for Airthings cloud (#107653) * Upgrade framework * Improve code for model name --- homeassistant/components/airthings/manifest.json | 2 +- homeassistant/components/airthings/sensor.py | 2 +- requirements_all.txt | 2 +- requirements_test_all.txt | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/homeassistant/components/airthings/manifest.json b/homeassistant/components/airthings/manifest.json index f8dad08c5d1..67057ff09f5 100644 --- a/homeassistant/components/airthings/manifest.json +++ b/homeassistant/components/airthings/manifest.json @@ -6,5 +6,5 @@ "documentation": "https://www.home-assistant.io/integrations/airthings", "iot_class": "cloud_polling", "loggers": ["airthings"], - "requirements": ["airthings-cloud==0.1.0"] + "requirements": ["airthings-cloud==0.2.0"] } diff --git a/homeassistant/components/airthings/sensor.py b/homeassistant/components/airthings/sensor.py index 3802a735a99..9d772d11996 100644 --- a/homeassistant/components/airthings/sensor.py +++ b/homeassistant/components/airthings/sensor.py @@ -149,7 +149,7 @@ class AirthingsHeaterEnergySensor( identifiers={(DOMAIN, airthings_device.device_id)}, name=airthings_device.name, manufacturer="Airthings", - model=airthings_device.device_type.replace("_", " ").lower().title(), + model=airthings_device.product_name, ) @property diff --git a/requirements_all.txt b/requirements_all.txt index d59389e7aa8..aa9200ac507 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -410,7 +410,7 @@ airly==1.1.0 airthings-ble==0.5.6-2 # homeassistant.components.airthings -airthings-cloud==0.1.0 +airthings-cloud==0.2.0 # homeassistant.components.airtouch4 airtouch4pyapi==1.0.5 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index bc8483c42e9..7a9d74a643b 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -383,7 +383,7 @@ airly==1.1.0 airthings-ble==0.5.6-2 # homeassistant.components.airthings -airthings-cloud==0.1.0 +airthings-cloud==0.2.0 # homeassistant.components.airtouch4 airtouch4pyapi==1.0.5 -- GitLab