diff --git a/homeassistant/components/zha/config_flow.py b/homeassistant/components/zha/config_flow.py index 1832424587b..03be28b9d8c 100644 --- a/homeassistant/components/zha/config_flow.py +++ b/homeassistant/components/zha/config_flow.py @@ -168,11 +168,10 @@ class ZhaFlowHandler(config_entries.ConfigFlow, domain=DOMAIN): radio_type = discovery_info.properties.get("radio_type") or local_name node_name = local_name[: -len(".local")] host = discovery_info.host + port = discovery_info.port if local_name.startswith("tube") or "efr32" in local_name: # This is hard coded to work with legacy devices port = 6638 - else: - port = discovery_info.port device_path = f"socket://{host}:{port}" if current_entry := await self.async_set_unique_id(node_name): diff --git a/mypy.ini b/mypy.ini index c4561dea5a8..d5b5ca39183 100644 --- a/mypy.ini +++ b/mypy.ini @@ -2997,9 +2997,6 @@ ignore_errors = true [mypy-homeassistant.components.zha.climate] ignore_errors = true -[mypy-homeassistant.components.zha.config_flow] -ignore_errors = true - [mypy-homeassistant.components.zha.core.channels.base] ignore_errors = true diff --git a/script/hassfest/mypy_config.py b/script/hassfest/mypy_config.py index 6b42bcd2cdd..bb46ba39212 100644 --- a/script/hassfest/mypy_config.py +++ b/script/hassfest/mypy_config.py @@ -148,7 +148,6 @@ IGNORED_MODULES: Final[list[str]] = [ "homeassistant.components.zha.binary_sensor", "homeassistant.components.zha.button", "homeassistant.components.zha.climate", - "homeassistant.components.zha.config_flow", "homeassistant.components.zha.core.channels.base", "homeassistant.components.zha.core.channels.closures", "homeassistant.components.zha.core.channels.general",