mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
remove ATTR_ID for groups (#26114)
This commit is contained in:
parent
ce54ae3171
commit
95f660f0b4
@ -38,7 +38,7 @@ from homeassistant.config_entries import ConfigEntry
|
|||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
|
|
||||||
from . import DOMAIN as HMIPC_DOMAIN, HMIPC_HAPID, HomematicipGenericDevice
|
from . import DOMAIN as HMIPC_DOMAIN, HMIPC_HAPID, HomematicipGenericDevice
|
||||||
from .device import ATTR_GROUP_MEMBER_UNREACHABLE
|
from .device import ATTR_GROUP_MEMBER_UNREACHABLE, ATTR_ID
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
@ -311,6 +311,10 @@ class HomematicipSecurityZoneSensorGroup(HomematicipGenericDevice, BinarySensorD
|
|||||||
"""Return the state attributes of the security zone group."""
|
"""Return the state attributes of the security zone group."""
|
||||||
attr = super().device_state_attributes
|
attr = super().device_state_attributes
|
||||||
|
|
||||||
|
# Remove ATTR_ID from dict, because security groups don't have
|
||||||
|
# device id/sgtin, just an ugly uuid that is referenced no where else.
|
||||||
|
del attr[ATTR_ID]
|
||||||
|
|
||||||
if self._device.motionDetected:
|
if self._device.motionDetected:
|
||||||
attr[ATTR_MOTIONDETECTED] = True
|
attr[ATTR_MOTIONDETECTED] = True
|
||||||
if self._device.presenceDetected:
|
if self._device.presenceDetected:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user