Bump devolo-home-control-api to 0.13.0 (#38718)

This commit is contained in:
Markus Bong 2020-08-10 15:57:04 +02:00 committed by GitHub
parent f82f815304
commit dba82fedd4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 14 additions and 10 deletions

View file

@ -58,7 +58,7 @@ class DevoloBinaryDeviceEntity(DevoloDeviceEntity, BinarySensorEntity):
self._binary_sensor_property.sub_type self._binary_sensor_property.sub_type
or self._binary_sensor_property.sensor_type or self._binary_sensor_property.sensor_type
) )
name = device_instance.itemName name = device_instance.item_name
if self._device_class is None: if self._device_class is None:
if device_instance.binary_sensor_property.get(element_uid).sub_type != "": if device_instance.binary_sensor_property.get(element_uid).sub_type != "":

View file

@ -32,7 +32,7 @@ class DevoloDeviceEntity(Entity):
async def async_added_to_hass(self) -> None: async def async_added_to_hass(self) -> None:
"""Call when entity is added to hass.""" """Call when entity is added to hass."""
self.subscriber = Subscriber( 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._homecontrol.publisher.register(
self._device_instance.uid, self.subscriber, self.sync_callback self._device_instance.uid, self.subscriber, self.sync_callback
@ -54,7 +54,7 @@ class DevoloDeviceEntity(Entity):
"""Return the device info.""" """Return the device info."""
return { return {
"identifiers": {(DOMAIN, self._device_instance.uid)}, "identifiers": {(DOMAIN, self._device_instance.uid)},
"name": self._device_instance.itemName, "name": self._device_instance.item_name,
"manufacturer": self._brand, "manufacturer": self._brand,
"model": self._model, "model": self._model,
} }

View file

@ -15,7 +15,7 @@ class DevoloMultiLevelSwitchDeviceEntity(DevoloDeviceEntity):
homecontrol=homecontrol, homecontrol=homecontrol,
device_instance=device_instance, device_instance=device_instance,
element_uid=element_uid, element_uid=element_uid,
name=f"{device_instance.itemName}", name=device_instance.item_name,
sync=self._sync, sync=self._sync,
) )
self._multi_level_switch_property = device_instance.multi_level_switch_property[ self._multi_level_switch_property = device_instance.multi_level_switch_property[

View file

@ -2,7 +2,7 @@
"domain": "devolo_home_control", "domain": "devolo_home_control",
"name": "devolo Home Control", "name": "devolo Home Control",
"documentation": "https://www.home-assistant.io/integrations/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, "config_flow": true,
"codeowners": ["@2Fake", "@Shutgun"], "codeowners": ["@2Fake", "@Shutgun"],
"quality_scale": "silver" "quality_scale": "silver"

View file

@ -54,7 +54,7 @@ class DevoloMultiLevelDeviceEntity(DevoloDeviceEntity):
self._multi_level_sensor_property.sensor_type self._multi_level_sensor_property.sensor_type
) )
name = device_instance.itemName name = device_instance.item_name
if self._device_class is None: if self._device_class is None:
name += f" {self._multi_level_sensor_property.sensor_type}" name += f" {self._multi_level_sensor_property.sensor_type}"

View file

@ -43,7 +43,9 @@ class DevoloSwitch(SwitchEntity):
self._unique_id = element_uid self._unique_id = element_uid
self._homecontrol = homecontrol 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() self._available = self._device_instance.is_online()
# Get the brand and model information # Get the brand and model information
@ -66,7 +68,9 @@ class DevoloSwitch(SwitchEntity):
async def async_added_to_hass(self): async def async_added_to_hass(self):
"""Call when entity is added to hass.""" """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._homecontrol.publisher.register(
self._device_instance.uid, self.subscriber, self.sync self._device_instance.uid, self.subscriber, self.sync
) )

View file

@ -479,7 +479,7 @@ deluge-client==1.7.1
denonavr==0.9.4 denonavr==0.9.4
# homeassistant.components.devolo_home_control # homeassistant.components.devolo_home_control
devolo-home-control-api==0.11.0 devolo-home-control-api==0.13.0
# homeassistant.components.directv # homeassistant.components.directv
directv==0.3.0 directv==0.3.0

View file

@ -249,7 +249,7 @@ defusedxml==0.6.0
denonavr==0.9.4 denonavr==0.9.4
# homeassistant.components.devolo_home_control # homeassistant.components.devolo_home_control
devolo-home-control-api==0.11.0 devolo-home-control-api==0.13.0
# homeassistant.components.directv # homeassistant.components.directv
directv==0.3.0 directv==0.3.0