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