Skip to content

Commit f5ddb12

Browse files
authored
Make the Blind Tilt a sequence device (#206)
1 parent 0437fc8 commit f5ddb12

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

switchbot/adv_parsers/blind_tilt.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,5 @@ def process_woblindtilt(
2323
"inMotion": _in_motion,
2424
"tilt": (100 - _tilt) if reverse else _tilt,
2525
"lightLevel": _light_level,
26+
"sequence_number": device_data[0]
2627
}

switchbot/devices/blind_tilt.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import logging
55
from typing import Any
66

7-
from switchbot.devices.device import REQ_HEADER, update_after_operation
7+
from switchbot.devices.device import REQ_HEADER, update_after_operation, SwitchbotSequenceDevice
88

99
from .curtain import CURTAIN_EXT_SUM_KEY, SwitchbotCurtain
1010

@@ -26,7 +26,7 @@
2626
]
2727

2828

29-
class SwitchbotBlindTilt(SwitchbotCurtain):
29+
class SwitchbotBlindTilt(SwitchbotCurtain, SwitchbotSequenceDevice):
3030
"""Representation of a Switchbot Blind Tilt."""
3131

3232
# The position of the blind is saved returned with 0 = closed down, 50 = open and 100 = closed up.

0 commit comments

Comments
 (0)