Update voluputous (#12463)
* Update voluputous * Fix http config * Fix optional with default=None * Optional, default=none * Fix defaults in voluptuous schemas * Fix tests * Fix update error * Lint
This commit is contained in:
parent
e4ef6b91d6
commit
3fd61d8f45
88 changed files with 207 additions and 255 deletions
|
@ -401,12 +401,12 @@ class TestComponentHistory(unittest.TestCase):
|
|||
filters = history.Filters()
|
||||
exclude = config[history.DOMAIN].get(history.CONF_EXCLUDE)
|
||||
if exclude:
|
||||
filters.excluded_entities = exclude[history.CONF_ENTITIES]
|
||||
filters.excluded_domains = exclude[history.CONF_DOMAINS]
|
||||
filters.excluded_entities = exclude.get(history.CONF_ENTITIES, [])
|
||||
filters.excluded_domains = exclude.get(history.CONF_DOMAINS, [])
|
||||
include = config[history.DOMAIN].get(history.CONF_INCLUDE)
|
||||
if include:
|
||||
filters.included_entities = include[history.CONF_ENTITIES]
|
||||
filters.included_domains = include[history.CONF_DOMAINS]
|
||||
filters.included_entities = include.get(history.CONF_ENTITIES, [])
|
||||
filters.included_domains = include.get(history.CONF_DOMAINS, [])
|
||||
|
||||
hist = history.get_significant_states(
|
||||
self.hass, zero, four, filters=filters)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue