Skip to content

Commit

Permalink
🔌 improve temperature unit for chuangmi.plug.212a01 (#1578)
Browse files Browse the repository at this point in the history
  • Loading branch information
FlyingFeng2021 authored Mar 15, 2024
1 parent e93473c commit cfa696c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions custom_components/xiaomi_miot/core/device_customizes.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,12 @@
'sensor_attributes': 'power_cost_today,power_cost_month',
'stat_power_cost_key': 'prop.5.1',
},
'chuangmi.plug.212a01:electric-current': {
'unit_of_measurement': 'mA',
},
'chuangmi.plug.212a01:voltage': {
'unit_of_measurement': 'V',
},
'chuangmi.plug.v1': {
'miot_type': 'urn:miot-spec-v2:device:outlet:0000A002:chuangmi-v1:1',
},
Expand Down

0 comments on commit cfa696c

Please sign in to comment.