mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-13 20:36:52 +00:00
HA version 0.64.0 voluptuous config check. (#4773)
* HA version 0.64.0 voluptuous config check. * Update
This commit is contained in:
parent
d2c7a2fe77
commit
243f02dc3e
@ -28,6 +28,7 @@ Some things to keep in mind:
|
||||
- Use the constants defined in `const.py`
|
||||
- Import `PLATFORM_SCHEMA` from the parent component and extend it
|
||||
- Preferred order is `required` first and `optional` second
|
||||
- Starting with Home Assistant 0.64 `voluptuous` requires default values for optional configuration keys to be valid values. Don't use a default which is `None` like `vol.Optional(CONF_SOMETHING, default=None): cv.string`, set the default to `default=""` if required.
|
||||
|
||||
### {% linkable_title Snippets %}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user