mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Remove obstruction detected property for covers in Overkiz (#103597)
This commit is contained in:
parent
859c5c48c4
commit
947ce592c1
@ -1,7 +1,6 @@
|
|||||||
"""Base class for Overkiz covers, shutters, awnings, etc."""
|
"""Base class for Overkiz covers, shutters, awnings, etc."""
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from collections.abc import Mapping
|
|
||||||
from typing import Any, cast
|
from typing import Any, cast
|
||||||
|
|
||||||
from pyoverkiz.enums import OverkizCommand, OverkizCommandParam, OverkizState
|
from pyoverkiz.enums import OverkizCommand, OverkizCommandParam, OverkizState
|
||||||
@ -115,17 +114,6 @@ class OverkizGenericCover(OverkizEntity, CoverEntity):
|
|||||||
for execution in self.coordinator.executions.values()
|
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
|
@property
|
||||||
def supported_features(self) -> CoverEntityFeature:
|
def supported_features(self) -> CoverEntityFeature:
|
||||||
"""Flag supported features."""
|
"""Flag supported features."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user