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