esphome / esphome/backlog

Update schema name of platform components to be <name>_schema

Open
#24 1 comment 0 reactions 1 assignee Claimed by @glmnet View on GitHub
enhancement
Dominant language
No language data
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Platform components, e.g. sensor, binary_sensor, stepper, they used to export the config schema as `PLATFORM_SCHEMA` that was long ago, then they changed to `_SCHEMA` e.g. `SENSOR_SCHEMA`, `BINARY_SENSOR_SCHEMA`, `STEPPER_SCHEMA` see https://github.com/esphome/esphome/blob/7ad6dab3839686ec64ba15de4d0a10c41e506346/esphome/components/cover/__init__.py#L151 and a global search of `# Remove before 2025.11.0`

now platform schemas are going to be normalized to _schema() as a `func()`, not `CONSTANT`

almost all (seems like e.g. stepper is missing) are already done, but also need to make sure these are using a consistent argument list so the json schema can call these functions to infer the platform schemas

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.