From e7e6b7f89be9c6dcdc80a5ffbf6e1a97e12736a9 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Tue, 1 Jul 2025 15:44:08 -0500 Subject: [PATCH] typing --- esphome/components/web_server/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/esphome/components/web_server/__init__.py b/esphome/components/web_server/__init__.py index 29fa669530..33b01cb376 100644 --- a/esphome/components/web_server/__init__.py +++ b/esphome/components/web_server/__init__.py @@ -74,7 +74,7 @@ def validate_local(config: ConfigType) -> ConfigType: return config -def validate_ota_removed(config: dict) -> dict: +def validate_ota_removed(config: ConfigType) -> ConfigType: # Only raise error if OTA is explicitly enabled (True) # If it's False or not specified, we can safely ignore it if config.get(CONF_OTA): @@ -88,7 +88,7 @@ def validate_ota_removed(config: dict) -> dict: return config -def validate_sorting_groups(config: dict) -> dict: +def validate_sorting_groups(config: ConfigType) -> ConfigType: if CONF_SORTING_GROUPS in config and config[CONF_VERSION] != 3: raise cv.Invalid( f"'{CONF_SORTING_GROUPS}' is only supported in 'web_server' version 3"