1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-07 05:42:20 +01:00

[config] Deprecate other *_SCHEMA constants (#8748)

This commit is contained in:
Jesse Hills
2025-05-13 07:43:38 +12:00
committed by GitHub
parent 71e88fe9b2
commit dcd786d21c
8 changed files with 52 additions and 15 deletions

View File

@@ -135,7 +135,9 @@ def switch_schema(
return schema
SWITCH_SCHEMA = switch_schema() # for compatibility
# Remove before 2025.11.0
SWITCH_SCHEMA = switch_schema()
SWITCH_SCHEMA.add_extra(cv.deprecated_schema_constant("switch"))
async def setup_switch_core_(var, config):