1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-29 22:24:26 +00:00

[config] Add entity schema consts with deprecation log (#8747)

This commit is contained in:
Jesse Hills
2025-05-12 18:31:36 +12:00
committed by GitHub
parent 401c090edd
commit 8324b3244c
5 changed files with 37 additions and 0 deletions

View File

@@ -88,6 +88,11 @@ def lock_schema(
return _LOCK_SCHEMA.extend(schema)
# Remove before 2025.11.0
LOCK_SCHEMA = lock_schema()
LOCK_SCHEMA.add_extra(cv.deprecated_schema_constant("lock"))
async def _setup_lock_core(var, config):
await setup_entity(var, config)