Correct spelling of aliases, deprecate old config options. (#8348)

* correct spelling of aliases

* add deprecation

* Fix style.
This commit is contained in:
Johan Bloemberg authored and Fabian Affolter committed 2017-07-06 15:59:54 +02:00
1 parent 143044f8f1
commit fe6a4b8ae5
7 files changed
+102 -49

No files matched your search

+5 -5
View File
@@ -24,7 +24,7 @@ CONFIG = {
'devices': {
'protocol_0_0': {
'name': 'test',
'aliasses': ['test_alias_0_0'],
'aliases': ['test_alias_0_0'],
},
},
},
@@ -47,7 +47,7 @@ def test_default_setup(hass, monkeypatch):
assert switch_initial.attributes['assumed_state']
# switch should follow state of the hardware device by interpreting
# incoming events for its name and aliasses
# incoming events for its name and aliases
# mock incoming command event for this device
event_callback({
@@ -70,7 +70,7 @@ def test_default_setup(hass, monkeypatch):
assert hass.states.get('switch.test').state == 'off'
# test following aliasses
# test following aliases
# mock incoming command event for this device alias
event_callback({
'id': 'test_alias_0_0',
@@ -112,7 +112,7 @@ def test_group_alias(hass, monkeypatch):
'devices': {
'protocol_0_0': {
'name': 'test',
'group_aliasses': ['test_group_0_0'],
'group_aliases': ['test_group_0_0'],
},
},
},
@@ -155,7 +155,7 @@ def test_nogroup_alias(hass, monkeypatch):
'devices': {
'protocol_0_0': {
'name': 'test',
'nogroup_aliasses': ['test_nogroup_0_0'],
'nogroup_aliases': ['test_nogroup_0_0'],
},
},
},