diff --git a/homeassistant/components/homematicip_cloud/binary_sensor.py b/homeassistant/components/homematicip_cloud/binary_sensor.py index 7bb7718f0b3..8ecbfeab01a 100644 --- a/homeassistant/components/homematicip_cloud/binary_sensor.py +++ b/homeassistant/components/homematicip_cloud/binary_sensor.py @@ -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: