Add group attribute to Homematic IP Cloud (#26618)

* Add group attribute to Homematic IP Cloud

* Fix docstring
This commit is contained in:
SukramJ 2019-09-14 07:12:19 +02:00 committed by Martin Hjelmare
parent a71cd6e90e
commit 1d3f2d20d2
4 changed files with 10 additions and 7 deletions

View file

@ -35,7 +35,7 @@ from homeassistant.const import (
from homeassistant.core import HomeAssistant
from . import DOMAIN as HMIPC_DOMAIN, HMIPC_HAPID, HomematicipGenericDevice
from .device import ATTR_MODEL_TYPE
from .device import ATTR_IS_GROUP, ATTR_MODEL_TYPE
_LOGGER = logging.getLogger(__name__)
@ -150,8 +150,8 @@ class HomematicipAccesspointStatus(HomematicipGenericDevice):
@property
def device_state_attributes(self):
"""Return the state attributes of the security zone group."""
return {ATTR_MODEL_TYPE: self._device.modelType}
"""Return the state attributes of the access point."""
return {ATTR_MODEL_TYPE: self._device.modelType, ATTR_IS_GROUP: False}
class HomematicipHeatingThermostat(HomematicipGenericDevice):