From faa2b8b2640a16bebd1a19943bc57ca297eb57dc Mon Sep 17 00:00:00 2001 From: Ben Vezzani Date: Mon, 22 Jan 2024 08:15:14 +0900 Subject: [PATCH] removes deprecated DEVICE_CLASS_HUMIDIFIER (#123) --- custom_components/dyson_local/humidifier.py | 4 ++-- custom_components/dyson_local/manifest.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/custom_components/dyson_local/humidifier.py b/custom_components/dyson_local/humidifier.py index e464cb6..1d26d24 100644 --- a/custom_components/dyson_local/humidifier.py +++ b/custom_components/dyson_local/humidifier.py @@ -5,7 +5,7 @@ from .vendor.libdyson import MessageType from homeassistant.components.humidifier import ( - DEVICE_CLASS_HUMIDIFIER, + HumidifierDeviceClass, HumidifierEntityFeature, HumidifierEntity, ) @@ -36,7 +36,7 @@ class DysonHumidifierEntity(DysonEntity, HumidifierEntity): _MESSAGE_TYPE = MessageType.STATE - _attr_device_class = DEVICE_CLASS_HUMIDIFIER + _attr_device_class = HumidifierDeviceClass.HUMIDIFIER _attr_available_modes = AVAILABLE_MODES _attr_max_humidity = 70 _attr_min_humidity = 30 diff --git a/custom_components/dyson_local/manifest.json b/custom_components/dyson_local/manifest.json index 26186b6..31e5e92 100644 --- a/custom_components/dyson_local/manifest.json +++ b/custom_components/dyson_local/manifest.json @@ -8,5 +8,5 @@ "iot_class": "local_push", "issue_tracker": "https://github.com/libdyson-wg/ha-dyson/issues", "requirements": ["paho-mqtt"], - "version": "1.3.9" + "version": "1.3.10" }