Skip to content

Commit

Permalink
Merge pull request #1377 from CharmingCheung/fix_xiaomi_occupancy_bat…
Browse files Browse the repository at this point in the history
…tery

fix battery configuration for xiaomi.sensor_occupy.03
  • Loading branch information
AlexxIT authored Jul 31, 2024
2 parents c6f0b6d + a252103 commit 5dfc876
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 @@ -1644,7 +1644,7 @@
BoolConv("occupancy", "binary_sensor", mi="2.p.1078"),#Tested
BaseConv("illuminance", "sensor", mi="2.p.1005"),#Tested
# other sensors
BaseConv("battery", mi="3.p.1003"),
BaseConv("battery", "sensor", mi="3.p.1003", entity=ENTITY_LAZY),

],
}, {
Expand Down

0 comments on commit 5dfc876

Please sign in to comment.