Please mypy (axis). (#49949)

* Please mypy (axis).

* Update homeassistant/components/axis/config_flow.py

Co-authored-by: Robert Svensson <Kane610@users.noreply.github.com>

Co-authored-by: Robert Svensson <Kane610@users.noreply.github.com>
This commit is contained in:
jan iversen 2021-05-01 16:13:43 +02:00 committed by GitHub
parent 20152313db
commit 60ae230499
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 3 deletions

View file

@ -156,7 +156,7 @@ class AxisFlowHandler(config_entries.ConfigFlow, domain=AXIS_DOMAIN):
return await self._process_discovered_device(
{
CONF_HOST: discovery_info[IP_ADDRESS],
CONF_MAC: format_mac(discovery_info.get(MAC_ADDRESS)),
CONF_MAC: format_mac(discovery_info.get(MAC_ADDRESS, "")),
CONF_NAME: discovery_info.get(HOSTNAME),
CONF_PORT: DEFAULT_PORT,
}

File diff suppressed because one or more lines are too long

View file

@ -26,7 +26,6 @@ IGNORED_MODULES: Final[list[str]] = [
"homeassistant.components.atag.*",
"homeassistant.components.aurora.*",
"homeassistant.components.awair.*",
"homeassistant.components.axis.*",
"homeassistant.components.azure_devops.*",
"homeassistant.components.azure_event_hub.*",
"homeassistant.components.blueprint.*",