Retrieve manufacturer and configuration_url from client in Overkiz integration (#103585)

Retrieve manufacturer and configuration_url from client
This commit is contained in:
Mick Vleeshouwer 2023-11-07 13:10:14 +01:00 committed by GitHub
parent b233d248ff
commit 76b322c6b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -129,10 +129,10 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
config_entry_id=entry.entry_id,
identifiers={(DOMAIN, gateway.id)},
model=gateway.sub_type.beautify_name if gateway.sub_type else None,
manufacturer=server.manufacturer,
manufacturer=client.server.manufacturer,
name=gateway.type.beautify_name if gateway.type else gateway.id,
sw_version=gateway.connectivity.protocol_version,
configuration_url=server.configuration_url,
configuration_url=client.server.configuration_url,
)
await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)