diff --git a/esphome/components/network/__init__.py b/esphome/components/network/__init__.py index 44d9b8ff17..572ee7f961 100644 --- a/esphome/components/network/__init__.py +++ b/esphome/components/network/__init__.py @@ -235,6 +235,6 @@ async def to_code(config): @coroutine_with_priority(CoroPriority.NETWORK_SERVICES) -async def network_component_to_code(config): +async def network_component_to_code(config: ConfigType) -> None: var = cg.new_Pvariable(config[CONF_ID]) await cg.register_component(var, config)