Browse Source

Check that area, rooms etc are lists in config

updated_weboob
Lucas Verney 5 years ago
parent
commit
1791142218
  1. 1
      flatisfy/config.py

1
flatisfy/config.py

@ -91,6 +91,7 @@ def validate_config(config, check_with_data): @@ -91,6 +91,7 @@ def validate_config(config, check_with_data):
"""
Check the bounds for numeric constraints.
"""
assert isinstance(bounds, list)
assert len(bounds) == 2
assert all(
x is None or

Loading…
Cancel
Save