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

* correct spelling of aliases

* add deprecation

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

View file

@ -27,7 +27,7 @@ CONFIG = {
'devices': {
'protocol_0_0': {
'name': 'test',
'aliasses': ['test_alias_0_0'],
'aliases': ['test_alias_0_0'],
},
'dimmable_0_0': {
'name': 'dim_test',
@ -58,7 +58,7 @@ def test_default_setup(hass, monkeypatch):
assert light_initial.attributes['assumed_state']
# light 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({
@ -100,7 +100,7 @@ def test_default_setup(hass, monkeypatch):
assert hass.states.get(DOMAIN + '.test').state == 'off'
# test following aliasses
# test following aliases
# mock incoming command event for this device alias
event_callback({
'id': 'test_alias_0_0',
@ -185,7 +185,7 @@ def test_firing_bus_event(hass, monkeypatch):
'devices': {
'protocol_0_0': {
'name': 'test',
'aliasses': ['test_alias_0_0'],
'aliases': ['test_alias_0_0'],
'fire_event': True,
},
},
@ -418,7 +418,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'],
},
},
},
@ -461,7 +461,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'],
},
},
},