fix: prevent straight wind feature for T0xAC (22040023). Fix #75.

This commit is contained in:
sususweet
2026-02-04 23:34:11 +08:00
parent e3f0bf9dfc
commit d5c1f3dce9

View File

@@ -1128,7 +1128,7 @@ DEVICE_MAPPING = {
},
("22012369", "22040023", "22270043"): {
"rationale": ["off", "on"],
"queries": [{}],
"queries": [{}, {"query_type": "prevent_straight_wind"}],
"centralized": ["buzzer"],
"calculate":{
"get": [
@@ -1192,6 +1192,10 @@ DEVICE_MAPPING = {
"device_class": SwitchDeviceClass.SWITCH,
"translation_key": "screen_close",
},
"prevent_straight_wind": {
"device_class": SwitchDeviceClass.SWITCH,
"rationale": [1, 2]
},
"dry": {
"device_class": SwitchDeviceClass.SWITCH,
},