Jesse Hills
d4fb77af75
[schema] Emit unit for float fields; leave union validators untyped
...
Address review feedback:
- float_with_unit fields now dump as type "float" with the canonical unit
(e.g. {"type": "float", "unit": "Hz"}) rather than the quantity name as the
type. This keeps the type vocabulary closed and lets editors label the field
with its unit directly instead of mapping each quantity name. The unit is the
first alternative of the accepted-units regex; current/voltage list A/V first
(no validation change).
- Drop scalar typing of validate_bytes and date_time: both accept multiple YAML
forms (unit-suffixed strings or numbers, and a formatted string or a mapping)
that a single scalar type would wrongly reject in the editor.
2026-07-16 07:51:26 +12:00
Jesse Hills
98f6e74385
[schema] Type config_validation validators and range bounds in language schema dump
...
The language schema dump left many config_validation validators untyped
(icon, mac_address, percentage, update_interval, lambdas, encryption keys,
...), so the visual editor and dashboard could not tell what YAML those
fields accept. Type them via convert() and schema_extractor decorators,
emit float_with_unit quantities (frequency, voltage, current, ...) as the
field type, and attach min/max bounds detected from range validators next
to the type.
2026-07-15 14:44:28 +12:00
Jesse Hills
dd0d0942f5
[image] Restructure into a platform component ( #17416 )
2026-07-09 07:38:58 +12:00
Jesse Hills and Jonathan Swoboda
cdd334284e
[rp2] Rename rp2040 platform to rp2 ( #17145 )
...
Co-authored-by: Jonathan Swoboda <154711427+swoboda1337@users.noreply.github.com >
2026-07-07 08:20:24 +12:00
Jesse Hills and J. Nick Koston
1ee49720c7
[psram] Make schema extractable with per-variant options ( #16949 )
...
Co-authored-by: J. Nick Koston <nick@koston.org >
2026-06-15 19:55:21 +12:00
Clyde Stubbs and Claude Opus 4.8
10ce6024bf
[lvgl] Fix schema extraction ( #16895 )
...
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com >
2026-06-13 08:21:38 -04:00
J. Nick Koston
cbc3770b11
Include model-driven display schemas in the language schema dump ( #16872 )
2026-06-07 17:30:43 -05:00
Clyde Stubbs and Jonathan Swoboda
93334d4e60
[scripts] Fix build_language_schema ( #16816 )
...
Co-authored-by: Jonathan Swoboda <154711427+swoboda1337@users.noreply.github.com >
2026-06-05 21:44:31 +00:00
J. Nick Koston
bac62cb7de
[core] Add cv.sensitive marker for schema-level sensitive fields ( #16673 )
2026-05-26 15:29:06 -05:00
J. Nick Koston
ae814cff5c
[core] Enable ruff B (flake8-bugbear) lint family ( #16655 )
2026-05-26 02:28:14 +00:00
Jesse Hills
76ce45c59e
[script] Preserve source order of enum options in language schema ( #16371 )
2026-05-13 06:28:39 +12:00
J. Nick Koston
930d539969
[config_validation] Add a visibility UI-hint kwarg ( #16267 )
2026-05-11 12:07:15 +12:00
J. Nick Koston
6173656bf8
[schema] Surface OnlyWith / OnlyWithout default + gate components in schema generator ( #16276 )
2026-05-06 13:49:00 -04:00
Guillermo Ruffino
ef65e47bc5
[schema] generator fixes ( #15276 )
2026-03-31 13:08:50 +13:00
Guillermo Ruffino
7b251dcc31
[schema-gen] fix Windows: ensure UTF-8 encoding when reading component files ( #13952 )
2026-02-12 11:23:59 -05:00
Jesse Hills
09d89000ad
[core] Remove deprecated schema constants ( #11591 )
2025-10-29 00:14:02 -05:00
9ea3643b74
[core] os.path -> Path ( #10654 )
...
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
Co-authored-by: J. Nick Koston <nick@koston.org >
Co-authored-by: J. Nick Koston <nick@home-assistant.io >
2025-09-19 12:59:48 +00:00
J. Nick Koston
f13e742bd5
[ruff] Enable RET and fix all violations ( #9929 )
2025-08-01 02:10:56 +00:00
J. Nick Koston
ffebd30033
[ruff] Enable SIM rules and fix code simplification violations ( #9872 )
2025-07-25 18:26:08 +12:00
Guillermo Ruffino
3bb5a9e2f7
[schema-gen] fix referenced schemas when schema in component platform ( #9755 )
2025-07-23 06:52:56 +12:00
Guillermo Ruffino
3d24dea455
fix schema-gen-ci failures ( #8621 )
2025-04-24 15:30:22 -10:00
f29ccb9e75
Schema gen action ( #8593 )
...
Co-authored-by: Jonathan Swoboda <154711427+swoboda1337@users.noreply.github.com >
Co-authored-by: Keith Burzinski <kbx81x@gmail.com >
2025-04-24 15:43:37 +12:00
dependabot[bot]
4adda632bb
Bump ruff from 0.9.2 to 0.11.0 ( #8409 )
2025-03-20 09:51:23 -10:00
tomaszduda23
731fb1d172
[spi] relay on KEY_TARGET_PLATFORM as the other platforms does ( #8066 )
2025-01-13 11:15:39 +13:00
tomaszduda23
a3ef2ed7fd
python lint for platform components ( #7864 )
2024-11-27 09:56:43 +13:00
Jesse Hills
73f786c606
[code-quality] Organise script imports ( #7198 )
2024-08-06 22:46:37 -05:00
dependabot[bot] and J. Nick Koston
07c3ee75e5
Bump black from 23.12.1 to 24.2.0 ( #6221 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: J. Nick Koston <nick@koston.org >
2024-02-21 15:53:50 +13:00
Jesse Hills
d2d0058386
Lint the script folder files ( #5991 )
2023-12-22 16:03:47 +09:00
Guillermo Ruffino
5d5cc96017
fix build lang schema for spi and i2c ( #5509 )
2023-10-11 11:52:40 +13:00
Guillermo Ruffino
2a2d20a7fc
support empty schemas and one platform components ( #4999 )
2023-06-26 09:38:36 +12:00
Guillermo Ruffino
3498aade85
update schema gen to 2023.4.0 ( #4772 )
2023-05-04 10:18:45 +12:00
Jesse Hills
6ad9baa870
Add API for dashboard to get boards list ( #4154 )
2022-12-07 16:07:51 +13:00
Guillermo Ruffino
c1f696c32a
fix display_menu recursive schema gen ( #4045 )
2022-11-21 21:43:01 -03:00
André Klitzing
72cce391ab
Fix some typos found by codespell ( #3598 )
2022-06-27 18:02:46 -03:00
Guillermo Ruffino
f002a23d2d
Language schema 202204 ( #3492 )
2022-06-17 13:46:20 +12:00
Guillermo Ruffino
05dc97099a
New vscode schema gen ( #3336 )
2022-04-03 19:30:22 +12:00