From d6df1527f1fb368347ec4454bb9df183d53cd513 Mon Sep 17 00:00:00 2001 From: Guido Schmitz Date: Wed, 30 Sep 2020 12:58:19 +0200 Subject: [PATCH] Update devolo-home-control-api to 0.15.0 (#40764) --- .../components/devolo_home_control/devolo_device.py | 8 +++----- .../components/devolo_home_control/manifest.json | 2 +- requirements_all.txt | 2 +- requirements_test_all.txt | 2 +- 4 files changed, 6 insertions(+), 8 deletions(-) diff --git a/homeassistant/components/devolo_home_control/devolo_device.py b/homeassistant/components/devolo_home_control/devolo_device.py index 651e1947bb6..44f3814825e 100644 --- a/homeassistant/components/devolo_home_control/devolo_device.py +++ b/homeassistant/components/devolo_home_control/devolo_device.py @@ -17,7 +17,7 @@ class DevoloDeviceEntity(Entity): self._device_instance = device_instance self._unique_id = element_uid self._homecontrol = homecontrol - self._name = device_instance.item_name + self._name = device_instance.settings_property["general_device_settings"].name self._device_class = None self._value = None self._unit = None @@ -34,9 +34,7 @@ class DevoloDeviceEntity(Entity): async def async_added_to_hass(self) -> None: """Call when entity is added to hass.""" - self.subscriber = Subscriber( - self._device_instance.item_name, callback=self.sync_callback - ) + self.subscriber = Subscriber(self._name, callback=self.sync_callback) self._homecontrol.publisher.register( self._device_instance.uid, self.subscriber, self.sync_callback ) @@ -57,7 +55,7 @@ class DevoloDeviceEntity(Entity): """Return the device info.""" return { "identifiers": {(DOMAIN, self._device_instance.uid)}, - "name": self._device_instance.item_name, + "name": self._name, "manufacturer": self._brand, "model": self._model, } diff --git a/homeassistant/components/devolo_home_control/manifest.json b/homeassistant/components/devolo_home_control/manifest.json index bdb3a80fff6..d7bc4804ef2 100644 --- a/homeassistant/components/devolo_home_control/manifest.json +++ b/homeassistant/components/devolo_home_control/manifest.json @@ -2,7 +2,7 @@ "domain": "devolo_home_control", "name": "devolo Home Control", "documentation": "https://www.home-assistant.io/integrations/devolo_home_control", - "requirements": ["devolo-home-control-api==0.13.0"], + "requirements": ["devolo-home-control-api==0.15.0"], "config_flow": true, "codeowners": ["@2Fake", "@Shutgun"], "quality_scale": "silver" diff --git a/requirements_all.txt b/requirements_all.txt index 1b707eb5c93..0b8ab3de387 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -484,7 +484,7 @@ deluge-client==1.7.1 denonavr==0.9.4 # homeassistant.components.devolo_home_control -devolo-home-control-api==0.13.0 +devolo-home-control-api==0.15.0 # homeassistant.components.directv directv==0.3.0 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index 7c563a057d4..a77a17302b9 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -254,7 +254,7 @@ defusedxml==0.6.0 denonavr==0.9.4 # homeassistant.components.devolo_home_control -devolo-home-control-api==0.13.0 +devolo-home-control-api==0.15.0 # homeassistant.components.directv directv==0.3.0