mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 10:17:09 +00:00
Fix lookin device validation in config flow (#58349)
These need to be prefixed with http:// or validation will fail
This commit is contained in:
parent
85ecb7ce3a
commit
02372cd65a
@ -84,7 +84,7 @@ class LookinFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
|
||||
async def _validate_device(self, host: str) -> Device:
|
||||
"""Validate we can connect to the device."""
|
||||
session = async_get_clientsession(self.hass)
|
||||
lookin_protocol = LookInHttpProtocol(host, session)
|
||||
lookin_protocol = LookInHttpProtocol(f"http://{host}", session)
|
||||
return await lookin_protocol.get_info()
|
||||
|
||||
async def async_step_discovery_confirm(
|
||||
|
Loading…
x
Reference in New Issue
Block a user