From 2a92d7f38a5500087fb1c283eb07340bbb41e848 Mon Sep 17 00:00:00 2001 From: Alone Date: Wed, 4 Jan 2023 22:15:22 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20migrate=20`device=5Fclass`=20to?= =?UTF-8?q?=20enums=20(#975)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- custom_components/xiaomi_miot/core/miot_spec.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/xiaomi_miot/core/miot_spec.py b/custom_components/xiaomi_miot/core/miot_spec.py index 1e42df2fa..9ade774e1 100644 --- a/custom_components/xiaomi_miot/core/miot_spec.py +++ b/custom_components/xiaomi_miot/core/miot_spec.py @@ -772,7 +772,7 @@ def device_class(self): ret = None name = self.full_name props = { - 'atmospheric_pressure': SensorDeviceClass.ATMOSPHERIC_PRESSURE, + 'atmospheric_pressure': SensorDeviceClass.PRESSURE, 'temperature': SensorDeviceClass.TEMPERATURE, 'relative_humidity': SensorDeviceClass.HUMIDITY, 'humidity': SensorDeviceClass.HUMIDITY,