Remove obstruction detected property for covers in Overkiz (#103597)
parent
859c5c48c4
commit
947ce592c1
|
@ -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."""
|
||||
|
|
Loading…
Reference in New Issue