Skip to content

Commit c10e882

Browse files
committed
add empty handler so method exists
1 parent 434653a commit c10e882

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

zha/application/platforms/cover/__init__.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -589,6 +589,19 @@ async def async_stop_cover(self, **kwargs: Any) -> None: # pylint: disable=unus
589589
if res[1] != Status.SUCCESS:
590590
raise ZHAException(f"Failed to stop cover: {res[1]}")
591591

592+
def restore_external_state_attributes(
593+
self,
594+
*,
595+
state: Literal[
596+
"open", "opening", "closed", "closing"
597+
], # FIXME: why must these be expanded?
598+
target_lift_position: int | None,
599+
target_tilt_position: int | None,
600+
**kwargs: Any,
601+
):
602+
"""Restore external state attributes."""
603+
# Shades don't restore state attributes
604+
592605

593606
@MULTI_MATCH(
594607
cluster_handler_names={CLUSTER_HANDLER_LEVEL, CLUSTER_HANDLER_ON_OFF},
@@ -696,7 +709,7 @@ def restore_external_state_attributes(
696709
self,
697710
*,
698711
state: Literal[
699-
"open", "opening", "closed", "closing"
712+
"open", "opening", "closed", "closing", "unavailable"
700713
], # FIXME: why must these be expanded?
701714
target_lift_position: int | None,
702715
target_tilt_position: int | None,

0 commit comments

Comments
 (0)