Skip to content

Commit

Permalink
Merge pull request #1521 from Zkdc/patch-1
Browse files Browse the repository at this point in the history
 fix energy proportion error for XMZNCXB01QM(Mesh Power Strip 2)
  • Loading branch information
AlexxIT authored Dec 19, 2024
2 parents 877eae4 + beed269 commit 1506ac8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/xiaomi_gateway3/core/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -2733,7 +2733,7 @@
BaseConv("switch", "switch", mi="2.p.1"), # bool
BaseConv("mode", "switch", mi="2.p.2"), # int8
MathConv("chip_temperature", "sensor", mi="2.p.3", round=2), # float, diagnostic
MathConv("energy", "sensor", mi="3.p.1", multiply=0.1, round=2),
MathConv("energy", "sensor", mi="3.p.1", round=2),
MathConv("power", "sensor", mi="3.p.2", round=2), # float
MathConv("voltage", "sensor", mi="3.p.3", multiply=0.001, round=2), # float
MathConv("current", "sensor", mi="3.p.4", multiply=0.001, round=2), # float
Expand Down

0 comments on commit 1506ac8

Please sign in to comment.