1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 04:50:05 +00:00

Preserve customize glob order. (#6963)

* Preserve customize glob order.

* add tests
This commit is contained in:
Andrey
2017-04-07 08:39:35 +03:00
committed by Paulus Schoutsen
parent 3e66df50c8
commit f96e06a2c2
4 changed files with 24 additions and 2 deletions

View File

@@ -108,7 +108,7 @@ CUSTOMIZE_CONFIG_SCHEMA = vol.Schema({
vol.Optional(CONF_CUSTOMIZE_DOMAIN, default={}):
vol.Schema({cv.string: dict}),
vol.Optional(CONF_CUSTOMIZE_GLOB, default={}):
vol.Schema({cv.string: dict}),
cv.ordered_dict(OrderedDict, cv.string),
})
CORE_CONFIG_SCHEMA = CUSTOMIZE_CONFIG_SCHEMA.extend({