Remove obstruction detected property for covers in Overkiz (#103597)

pull/103633/head
Mick Vleeshouwer 2023-11-07 23:50:22 +01:00 committed by GitHub
parent 859c5c48c4
commit 947ce592c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 12 deletions

View File

@ -1,7 +1,6 @@
"""Base class for Overkiz covers, shutters, awnings, etc."""
from __future__ import annotations
from collections.abc import Mapping
from typing import Any, cast
from pyoverkiz.enums import OverkizCommand, OverkizCommandParam, OverkizState
@ -115,17 +114,6 @@ class OverkizGenericCover(OverkizEntity, CoverEntity):
for execution in self.coordinator.executions.values()
)
@property
def extra_state_attributes(self) -> Mapping[str, Any] | None:
"""Return the device state attributes."""
attr = super().extra_state_attributes or {}
# Obstruction Detected attribute is used by HomeKit
if self.executor.has_state(OverkizState.IO_PRIORITY_LOCK_LEVEL):
return {**attr, **{ATTR_OBSTRUCTION_DETECTED: True}}
return attr
@property
def supported_features(self) -> CoverEntityFeature:
"""Flag supported features."""