mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 12:47:08 +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 . 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__)
|
||||
|
||||
@ -311,6 +311,10 @@ class HomematicipSecurityZoneSensorGroup(HomematicipGenericDevice, BinarySensorD
|
||||
"""Return the state attributes of the security zone group."""
|
||||
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:
|
||||
attr[ATTR_MOTIONDETECTED] = True
|
||||
if self._device.presenceDetected:
|
||||
|
Loading…
x
Reference in New Issue
Block a user