Skip to content

Commit

Permalink
Code refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexxIT committed Apr 6, 2024
1 parent 030e6f2 commit 4fe9de5
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions custom_components/xiaomi_gateway3/core/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -2324,14 +2324,12 @@
],
"ttl": "7d",
}, {
# urn:miot-spec-v2:device:light:0000A001:yeelink-nl2:1:0000C81D 米家智能光感夜灯
4736: ["Yeelight", "Mesh Night Light", "MJYD05YL", "yeelink.light.nl2"],
"spec": [
BaseConv("switch", "light", mi="2.p.1"), # bool
BoolConv("light", "binary_sensor", mi="3.p.1") # uint8 0-Dark 1-Bright
],
}, {
# urn:miot-spec-v2:device:outlet:0000A002:qmi-psv3:1:0000C816小米智能插线板2 5位插孔
4896: ["Xiaomi", "Mesh Power Strip 2", "XMZNCXB01QM", "qmi.plug.psv3"],
"spec": [
BaseConv("switch", "switch", mi="2.p.1"), # bool
Expand Down

0 comments on commit 4fe9de5

Please sign in to comment.