Bump dependencies in Overkiz integration (#69855)

This commit is contained in:
Mick Vleeshouwer 2022-04-11 10:27:49 -07:00 committed by GitHub
parent 919a746ebc
commit 8c01decef7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 12 additions and 6 deletions

View File

@ -123,7 +123,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
identifiers={(DOMAIN, gateway.id)}, identifiers={(DOMAIN, gateway.id)},
model=gateway.sub_type.beautify_name if gateway.sub_type else None, model=gateway.sub_type.beautify_name if gateway.sub_type else None,
manufacturer=server.manufacturer, manufacturer=server.manufacturer,
name=gateway.type.beautify_name, name=gateway.type.beautify_name if gateway.type else gateway.id,
sw_version=gateway.connectivity.protocol_version, sw_version=gateway.connectivity.protocol_version,
configuration_url=server.configuration_url, configuration_url=server.configuration_url,
) )

View File

@ -62,7 +62,7 @@ class OverkizDataUpdateCoordinator(DataUpdateCoordinator[dict[str, Device]]):
device.protocol in (Protocol.RTS, Protocol.INTERNAL) for device in devices device.protocol in (Protocol.RTS, Protocol.INTERNAL) for device in devices
) )
self.executions: dict[str, dict[str, str]] = {} self.executions: dict[str, dict[str, str]] = {}
self.areas = self._places_to_area(places) self.areas = self._places_to_area(places) if places else None
self.config_entry_id = config_entry_id self.config_entry_id = config_entry_id
async def _async_update_data(self) -> dict[str, Device]: async def _async_update_data(self) -> dict[str, Device]:

View File

@ -66,6 +66,12 @@ class OverkizEntity(CoordinatorEntity[OverkizDataUpdateCoordinator]):
or self.device.widget.value or self.device.widget.value
) )
suggested_area = (
self.coordinator.areas[self.device.place_oid]
if self.coordinator.areas and self.device.place_oid
else None
)
return DeviceInfo( return DeviceInfo(
identifiers={(DOMAIN, self.executor.base_device_url)}, identifiers={(DOMAIN, self.executor.base_device_url)},
name=self.device.label, name=self.device.label,
@ -76,7 +82,7 @@ class OverkizEntity(CoordinatorEntity[OverkizDataUpdateCoordinator]):
self.executor.select_attribute(OverkizAttribute.CORE_FIRMWARE_REVISION), self.executor.select_attribute(OverkizAttribute.CORE_FIRMWARE_REVISION),
), ),
hw_version=self.device.controllable_name, hw_version=self.device.controllable_name,
suggested_area=self.coordinator.areas[self.device.place_oid], suggested_area=suggested_area,
via_device=(DOMAIN, self.executor.get_gateway_id()), via_device=(DOMAIN, self.executor.get_gateway_id()),
configuration_url=self.coordinator.client.server.configuration_url, configuration_url=self.coordinator.client.server.configuration_url,
) )

View File

@ -3,7 +3,7 @@
"name": "Overkiz (by Somfy)", "name": "Overkiz (by Somfy)",
"config_flow": true, "config_flow": true,
"documentation": "https://www.home-assistant.io/integrations/overkiz", "documentation": "https://www.home-assistant.io/integrations/overkiz",
"requirements": ["pyoverkiz==1.3.14"], "requirements": ["pyoverkiz==1.4.0"],
"zeroconf": [ "zeroconf": [
{ {
"type": "_kizbox._tcp.local.", "type": "_kizbox._tcp.local.",

View File

@ -1708,7 +1708,7 @@ pyotgw==1.1b1
pyotp==2.6.0 pyotp==2.6.0
# homeassistant.components.overkiz # homeassistant.components.overkiz
pyoverkiz==1.3.14 pyoverkiz==1.4.0
# homeassistant.components.openweathermap # homeassistant.components.openweathermap
pyowm==3.2.0 pyowm==3.2.0

View File

@ -1145,7 +1145,7 @@ pyotgw==1.1b1
pyotp==2.6.0 pyotp==2.6.0
# homeassistant.components.overkiz # homeassistant.components.overkiz
pyoverkiz==1.3.14 pyoverkiz==1.4.0
# homeassistant.components.openweathermap # homeassistant.components.openweathermap
pyowm==3.2.0 pyowm==3.2.0