Add suggested_area support to devolo Home Control (#47063)

This commit is contained in:
Guido Schmitz 2021-02-26 15:48:36 +01:00 committed by GitHub
parent 9c67f83f4e
commit 71cf982a28
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,6 +18,7 @@ class DevoloDeviceEntity(Entity):
self._unique_id = element_uid
self._homecontrol = homecontrol
self._name = device_instance.settings_property["general_device_settings"].name
self._area = device_instance.settings_property["general_device_settings"].zone
self._device_class = None
self._value = None
self._unit = None
@ -59,6 +60,7 @@ class DevoloDeviceEntity(Entity):
"name": self._name,
"manufacturer": self._brand,
"model": self._model,
"suggested_area": self._area,
}
@property