Delete unused switch platform code (#149468)

This commit is contained in:
Petro31 2025-07-28 08:48:45 -04:00 committed by GitHub
parent bf05c23414
commit 48c4240a5d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -94,16 +94,6 @@ SWITCH_CONFIG_ENTRY_SCHEMA = SWITCH_COMMON_SCHEMA.extend(
)
def rewrite_options_to_modern_conf(option_config: dict[str, dict]) -> dict[str, dict]:
"""Rewrite option configuration to modern configuration."""
option_config = {**option_config}
if CONF_VALUE_TEMPLATE in option_config:
option_config[CONF_STATE] = option_config.pop(CONF_VALUE_TEMPLATE)
return option_config
async def async_setup_platform(
hass: HomeAssistant,
config: ConfigType,