Splitt device_state_attributes between device and group for Homematic IP Cloud (#26137)

* splitt device_state_attributes between device and group

* readd device_state_attributes for access point
This commit is contained in:
SukramJ authored and Paulus Schoutsen committed 2019-08-22 09:02:35 -07:00
1 parent bc5cec97f4
commit 82b1b10c28
3 files changed
+13 -10

No files matched your search

@@ -34,6 +34,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
_LOGGER = logging.getLogger(__name__)
@@ -142,6 +143,11 @@ class HomematicipAccesspointStatus(HomematicipGenericDevice):
"""Return the unit this state is expressed in."""
return "%"
@property
def device_state_attributes(self):
"""Return the state attributes of the security zone group."""
return {ATTR_MODEL_TYPE: self._device.modelType}
class HomematicipHeatingThermostat(HomematicipGenericDevice):
"""Representation of a HomematicIP heating thermostat device."""