mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
Fix ESPHome dashboard check (#129812)
This commit is contained in:
parent
f1a2c8be4b
commit
689260f581
@ -570,8 +570,10 @@ def _async_setup_device_registry(
|
||||
configuration_url = None
|
||||
if device_info.webserver_port > 0:
|
||||
configuration_url = f"http://{entry.data['host']}:{device_info.webserver_port}"
|
||||
elif (dashboard := async_get_dashboard(hass)) and dashboard.data.get(
|
||||
device_info.name
|
||||
elif (
|
||||
(dashboard := async_get_dashboard(hass))
|
||||
and dashboard.data
|
||||
and dashboard.data.get(device_info.name)
|
||||
):
|
||||
configuration_url = f"homeassistant://hassio/ingress/{dashboard.addon_slug}"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user