1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-10 15:22:24 +01:00

Revert "Sort keys in dicts in output yaml for 'config' command (#1049)" (#1191)

This commit is contained in:
Otto Winter
2020-07-25 14:21:56 +02:00
committed by GitHub
parent 32efa5d83e
commit 55388724af
5 changed files with 9 additions and 18 deletions

View File

@@ -52,7 +52,8 @@ class _Schema(vol.Schema):
all_required_keys = {key for key in schema if isinstance(key, vol.Required)}
# Keys that may have defaults
all_default_keys = {key for key in schema if isinstance(key, vol.Optional)}
# This is a list because sets do not guarantee insertion order
all_default_keys = [key for key in schema if isinstance(key, vol.Optional)]
# Recursively compile schema
_compiled_schema = {}