Skip to content
Snippets Groups Projects
Unverified Commit 6d30105c authored by Jesse Hills's avatar Jesse Hills Committed by GitHub
Browse files

Add configuration_url to ESPHome (#58565)

parent 7d408e32
No related branches found
No related tags found
No related merge requests found
......@@ -328,9 +328,13 @@ def _async_setup_device_registry(
sw_version = device_info.esphome_version
if device_info.compilation_time:
sw_version += f" ({device_info.compilation_time})"
configuration_url = None
if device_info.webserver_port > 0:
configuration_url = f"http://{entry.data['host']}:{device_info.webserver_port}"
device_registry = dr.async_get(hass)
device_entry = device_registry.async_get_or_create(
config_entry_id=entry.entry_id,
configuration_url=configuration_url,
connections={(dr.CONNECTION_NETWORK_MAC, device_info.mac_address)},
name=device_info.name,
manufacturer="espressif",
......
......@@ -3,7 +3,7 @@
"name": "ESPHome",
"config_flow": true,
"documentation": "https://www.home-assistant.io/integrations/esphome",
"requirements": ["aioesphomeapi==10.1.0"],
"requirements": ["aioesphomeapi==10.2.0"],
"zeroconf": ["_esphomelib._tcp.local."],
"codeowners": ["@OttoWinter", "@jesserockz"],
"after_dependencies": ["zeroconf", "tag"],
......
......@@ -161,7 +161,7 @@ aioeagle==1.1.0
aioemonitor==1.0.5
# homeassistant.components.esphome
aioesphomeapi==10.1.0
aioesphomeapi==10.2.0
# homeassistant.components.flo
aioflo==0.4.1
......
......@@ -109,7 +109,7 @@ aioeagle==1.1.0
aioemonitor==1.0.5
# homeassistant.components.esphome
aioesphomeapi==10.1.0
aioesphomeapi==10.2.0
# homeassistant.components.flo
aioflo==0.4.1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment