Make all entity_ids lowercase (#1786)
This commit is contained in:
parent
6d65b0bbd7
commit
4f834ba3f1
2 changed files with 4 additions and 6 deletions
|
@ -70,7 +70,7 @@ def test_entity_id():
|
|||
with pytest.raises(vol.MultipleInvalid):
|
||||
schema('invalid_entity')
|
||||
|
||||
schema('sensor.light')
|
||||
assert 'sensor.light' == schema('sensor.LIGHT')
|
||||
|
||||
|
||||
def test_entity_ids():
|
||||
|
@ -94,7 +94,7 @@ def test_entity_ids():
|
|||
):
|
||||
schema(value)
|
||||
|
||||
assert schema('sensor.light, light.kitchen ') == [
|
||||
assert schema('sensor.LIGHT, light.kitchen ') == [
|
||||
'sensor.light', 'light.kitchen'
|
||||
]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue