mirror of
https://github.com/home-assistant/core.git
synced 2025-08-07 06:35:10 +02:00
Allow window_covering_type
to be None
This commit is contained in:
@@ -267,8 +267,6 @@ class WindowCoveringClusterHandler(ClusterHandler):
|
|||||||
)
|
)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def window_covering_type(self) -> WindowCovering.WindowCoveringType:
|
def window_covering_type(self) -> WindowCovering.WindowCoveringType | None:
|
||||||
"""Return the window covering type."""
|
"""Return the window covering type."""
|
||||||
return WindowCovering.WindowCoveringType(
|
return self.cluster.get(WindowCovering.AttributeDefs.window_covering_type.name)
|
||||||
self.cluster.get(WindowCovering.AttributeDefs.window_covering_type.name)
|
|
||||||
)
|
|
||||||
|
Reference in New Issue
Block a user