Skip to content

Commit

Permalink
🧲 improve for magnet (#2017)
Browse files Browse the repository at this point in the history
  • Loading branch information
al-one committed Dec 5, 2024
1 parent f3a4005 commit 283872a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions custom_components/xiaomi_miot/core/device_customizes.py
Original file line number Diff line number Diff line change
Expand Up @@ -2064,6 +2064,10 @@
'*.lock.*:timestamp': {
'device_class': 'timestamp',
},
'*.magnet.*': {
'binary_sensor_properties': 'contact_state',
'sensor_properties': 'illumination',
},
'*.microwave.*': {
'sensor_properties': 'left_time,heat_level,cook_time',
},
Expand Down

0 comments on commit 283872a

Please sign in to comment.