1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-26 15:12:21 +01: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

@@ -81,6 +81,11 @@ def update_schema(
return _UPDATE_SCHEMA.extend(schema)
# Remove before 2025.11.0
UPDATE_SCHEMA = update_schema()
UPDATE_SCHEMA.add_extra(cv.deprecated_schema_constant("update"))
async def setup_update_core_(var, config):
await setup_entity(var, config)