Skip to content

Commit

Permalink
Code refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexxIT committed Jan 8, 2023
1 parent 03826c6 commit aba79b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion custom_components/xiaomi_gateway3/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
ACTIONS = {
HVAC_MODE_OFF: CURRENT_HVAC_OFF,
HVAC_MODE_COOL: CURRENT_HVAC_COOL,
HVAC_MODE_HEAT: CURRENT_HVAC_HEAT
HVAC_MODE_HEAT: CURRENT_HVAC_HEAT,
}


Expand Down
6 changes: 3 additions & 3 deletions custom_components/xiaomi_gateway3/core/converters/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -1227,11 +1227,11 @@
MiBeacon,
Converter("action", "sensor"),
Converter("battery", "sensor"),
Converter("doorbell","sensor"),
Converter("doorbell", "sensor"),
Converter("contact", "binary_sensor"),
Converter("lock", "binary_sensor"),
],
},{
}, {
6473: ["Xiaomi", "Wireless Button (Double)", "XMWXKG01YL"],
"spec": [MiBeacon, BLEAction, Button1, Button2, ButtonBoth, BLEBattery],
"ttl": "16m", # battery every 5 min
Expand Down Expand Up @@ -1681,7 +1681,7 @@
BoolConv("occupancy", "binary_sensor", mi="2.p.1"),
MathConv("no_one_determine_time", "number", mi="2.p.2", min=0, max=10000),
MathConv("has_someone_duration", "sensor", mi="2.p.3"),
MathConv("idle_time", "sensor", mi="2.p.4", multiply=60),
MathConv("idle_time", "sensor", mi="2.p.4", multiply=60),
MathConv("illuminance", "sensor", mi="2.p.5"),
MathConv("distance", "sensor", mi="2.p.6"),

Expand Down

0 comments on commit aba79b4

Please sign in to comment.