Fix lookin device validation in config flow (#58349)

These need to be prefixed with http:// or validation will fail
This commit is contained in:
J. Nick Koston
2021-10-24 11:13:49 -10:00
committed by GitHub
parent 85ecb7ce3a
commit 02372cd65a

View File

@@ -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(