diff --git a/homeassistant/components/devolo_home_control/binary_sensor.py b/homeassistant/components/devolo_home_control/binary_sensor.py index 26c27f59ae8..d3da333b407 100644 --- a/homeassistant/components/devolo_home_control/binary_sensor.py +++ b/homeassistant/components/devolo_home_control/binary_sensor.py @@ -58,7 +58,7 @@ class DevoloBinaryDeviceEntity(DevoloDeviceEntity, BinarySensorEntity): self._binary_sensor_property.sub_type or self._binary_sensor_property.sensor_type ) - name = device_instance.itemName + name = device_instance.item_name if self._device_class is None: if device_instance.binary_sensor_property.get(element_uid).sub_type != "": diff --git a/homeassistant/components/devolo_home_control/devolo_device.py b/homeassistant/components/devolo_home_control/devolo_device.py index 1694aeb3f47..06ddf2175f7 100644 --- a/homeassistant/components/devolo_home_control/devolo_device.py +++ b/homeassistant/components/devolo_home_control/devolo_device.py @@ -32,7 +32,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.itemName, callback=self.sync_callback + self._device_instance.item_name, callback=self.sync_callback ) self._homecontrol.publisher.register( self._device_instance.uid, self.subscriber, self.sync_callback @@ -54,7 +54,7 @@ class DevoloDeviceEntity(Entity): """Return the device info.""" return { "identifiers": {(DOMAIN, self._device_instance.uid)}, - "name": self._device_instance.itemName, + "name": self._device_instance.item_name, "manufacturer": self._brand, "model": self._model, } diff --git a/homeassistant/components/devolo_home_control/devolo_multi_level_switch.py b/homeassistant/components/devolo_home_control/devolo_multi_level_switch.py index 897899e725c..70629854dea 100644 --- a/homeassistant/components/devolo_home_control/devolo_multi_level_switch.py +++ b/homeassistant/components/devolo_home_control/devolo_multi_level_switch.py @@ -15,7 +15,7 @@ class DevoloMultiLevelSwitchDeviceEntity(DevoloDeviceEntity): homecontrol=homecontrol, device_instance=device_instance, element_uid=element_uid, - name=f"{device_instance.itemName}", + name=device_instance.item_name, sync=self._sync, ) self._multi_level_switch_property = device_instance.multi_level_switch_property[ diff --git a/homeassistant/components/devolo_home_control/manifest.json b/homeassistant/components/devolo_home_control/manifest.json index 1ee54f23fde..bdb3a80fff6 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.11.0"], + "requirements": ["devolo-home-control-api==0.13.0"], "config_flow": true, "codeowners": ["@2Fake", "@Shutgun"], "quality_scale": "silver" diff --git a/homeassistant/components/devolo_home_control/sensor.py b/homeassistant/components/devolo_home_control/sensor.py index 31bee42e4a2..bdf0f05528d 100644 --- a/homeassistant/components/devolo_home_control/sensor.py +++ b/homeassistant/components/devolo_home_control/sensor.py @@ -54,7 +54,7 @@ class DevoloMultiLevelDeviceEntity(DevoloDeviceEntity): self._multi_level_sensor_property.sensor_type ) - name = device_instance.itemName + name = device_instance.item_name if self._device_class is None: name += f" {self._multi_level_sensor_property.sensor_type}" diff --git a/homeassistant/components/devolo_home_control/switch.py b/homeassistant/components/devolo_home_control/switch.py index 4ba212af379..9a7812af7bd 100644 --- a/homeassistant/components/devolo_home_control/switch.py +++ b/homeassistant/components/devolo_home_control/switch.py @@ -43,7 +43,9 @@ class DevoloSwitch(SwitchEntity): self._unique_id = element_uid self._homecontrol = homecontrol - self._name = self._device_instance.itemName + self._name = self._device_instance.item_name + + # This is not doing I/O. It fetches an internal state of the API self._available = self._device_instance.is_online() # Get the brand and model information @@ -66,7 +68,9 @@ class DevoloSwitch(SwitchEntity): async def async_added_to_hass(self): """Call when entity is added to hass.""" - self.subscriber = Subscriber(self._device_instance.itemName, callback=self.sync) + self.subscriber = Subscriber( + self._device_instance.item_name, callback=self.sync + ) self._homecontrol.publisher.register( self._device_instance.uid, self.subscriber, self.sync ) diff --git a/requirements_all.txt b/requirements_all.txt index 4c4ce6de1ba..6378ae5418e 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -479,7 +479,7 @@ deluge-client==1.7.1 denonavr==0.9.4 # homeassistant.components.devolo_home_control -devolo-home-control-api==0.11.0 +devolo-home-control-api==0.13.0 # homeassistant.components.directv directv==0.3.0 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index da524c6423d..4793e48d391 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -249,7 +249,7 @@ defusedxml==0.6.0 denonavr==0.9.4 # homeassistant.components.devolo_home_control -devolo-home-control-api==0.11.0 +devolo-home-control-api==0.13.0 # homeassistant.components.directv directv==0.3.0