parent
716d8f8a00
commit
d3c53a1cef
|
@ -15,7 +15,7 @@ from homeassistant.data_entry_flow import FlowResult
|
|||
from .const import DOMAIN
|
||||
from .data import WyomingService
|
||||
|
||||
_LOGGER = logging.getLogger()
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
STEP_USER_DATA_SCHEMA = vol.Schema(
|
||||
{
|
||||
|
@ -64,6 +64,7 @@ class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
|
|||
self, discovery_info: hassio.HassioServiceInfo
|
||||
) -> FlowResult:
|
||||
"""Handle Supervisor add-on discovery."""
|
||||
_LOGGER.debug("Supervisor discovery info: %s", discovery_info)
|
||||
await self.async_set_unique_id(discovery_info.uuid)
|
||||
self._abort_if_unique_id_configured()
|
||||
|
||||
|
@ -105,7 +106,7 @@ class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
|
|||
self, discovery_info: zeroconf.ZeroconfServiceInfo
|
||||
) -> FlowResult:
|
||||
"""Handle zeroconf discovery."""
|
||||
_LOGGER.debug("Discovery info: %s", discovery_info)
|
||||
_LOGGER.debug("Zeroconf discovery info: %s", discovery_info)
|
||||
if discovery_info.port is None:
|
||||
return self.async_abort(reason="no_port")
|
||||
|
||||
|
|
Loading…
Reference in New Issue