From 0981e50c290e19b0bd40f0158129c3b92ff28c7c Mon Sep 17 00:00:00 2001 From: Alone Date: Wed, 27 Mar 2024 22:46:11 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=8C=20improve=20for=20qmi.plug=20(#159?= =?UTF-8?q?0)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- custom_components/xiaomi_miot/core/device_customizes.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/custom_components/xiaomi_miot/core/device_customizes.py b/custom_components/xiaomi_miot/core/device_customizes.py index 9b45734ec..c764261f2 100644 --- a/custom_components/xiaomi_miot/core/device_customizes.py +++ b/custom_components/xiaomi_miot/core/device_customizes.py @@ -1176,6 +1176,9 @@ 'device_class': 'energy', 'unit_of_measurement': 'kWh', }, + 'qmi.plug.*': { + 'sensor_properties': 'power_consumption', + }, 'qushui.bed.001': { 'chunk_properties': 1, },