From 92c9fbc6d01a5d86f78d64183302b906aa7d8215 Mon Sep 17 00:00:00 2001 From: ArchelonU <84841251+ArchelonU@users.noreply.github.com> Date: Fri, 7 Jul 2023 02:36:13 +0300 Subject: [PATCH] Fix data type for Tuya/Hiking power meter (#2460) Fix for commit 6386248 Changes in commit 6386248 broke summary sensor on my Home Assistant. Probably, previous commit-author forgot to add this change in his commit. --- zhaquirks/tuya/ts0601_din_power.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zhaquirks/tuya/ts0601_din_power.py b/zhaquirks/tuya/ts0601_din_power.py index 6b6c919b33..9870f056b6 100644 --- a/zhaquirks/tuya/ts0601_din_power.py +++ b/zhaquirks/tuya/ts0601_din_power.py @@ -142,7 +142,7 @@ class HikingManufClusterDinPower(TuyaManufClusterAttributes): attributes = { HIKING_DIN_SWITCH_ATTR: ("switch", t.uint8_t, True), - HIKING_TOTAL_ENERGY_DELIVERED_ATTR: ("energy_delivered", t.uint16_t, True), + HIKING_TOTAL_ENERGY_DELIVERED_ATTR: ("energy_delivered", t.uint32_t, True), HIKING_TOTAL_ENERGY_RECEIVED_ATTR: ("energy_received", t.uint16_t, True), HIKING_VOLTAGE_CURRENT_ATTR: ("voltage_current", t.uint32_t, True), HIKING_POWER_ATTR: ("power", t.uint16_t, True),