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:
@@ -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):
|
||||
|
Reference in New Issue
Block a user