Use ZeroconfServiceInfo in enphase-envoy (#59738)

Co-authored-by: epenet <epenet@users.noreply.github.com>
pull/59727/head
epenet 2021-11-17 01:45:03 +01:00 committed by GitHub
parent b82fac1a73
commit 7f07755f5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -21,7 +21,6 @@ from homeassistant.core import HomeAssistant, callback
from homeassistant.data_entry_flow import FlowResult
from homeassistant.exceptions import HomeAssistantError
from homeassistant.helpers.httpx_client import get_async_client
from homeassistant.helpers.typing import DiscoveryInfoType
from .const import DOMAIN
@ -102,7 +101,7 @@ class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
}
async def async_step_zeroconf(
self, discovery_info: DiscoveryInfoType
self, discovery_info: zeroconf.ZeroconfServiceInfo
) -> FlowResult:
"""Handle a flow initialized by zeroconf discovery."""
self.serial = discovery_info[zeroconf.ATTR_PROPERTIES]["serialnum"]