Fix translation, adjust trigger names (#26635)

This commit is contained in:
Erik Montnemery
2019-09-18 18:43:31 +02:00
committed by Bram Kragten
parent 4a30c1023c
commit bc7ff8323c
7 changed files with 24 additions and 20 deletions
@@ -133,14 +133,14 @@ async def test_websocket_get_triggers(hass, hass_ws_client, device_reg, entity_r
{
"platform": "device",
"domain": "light",
"type": "turn_off",
"type": "turned_off",
"device_id": device_entry.id,
"entity_id": "light.test_5678",
},
{
"platform": "device",
"domain": "light",
"type": "turn_on",
"type": "turned_on",
"device_id": device_entry.id,
"entity_id": "light.test_5678",
},
@@ -125,14 +125,14 @@ async def test_get_triggers(hass, device_reg, entity_reg):
{
"platform": "device",
"domain": DOMAIN,
"type": "turn_off",
"type": "turned_off",
"device_id": device_entry.id,
"entity_id": f"{DOMAIN}.test_5678",
},
{
"platform": "device",
"domain": DOMAIN,
"type": "turn_on",
"type": "turned_on",
"device_id": device_entry.id,
"entity_id": f"{DOMAIN}.test_5678",
},
@@ -163,7 +163,7 @@ async def test_if_fires_on_state_change(hass, calls):
"domain": DOMAIN,
"device_id": "",
"entity_id": ent1.entity_id,
"type": "turn_on",
"type": "turned_on",
},
"action": {
"service": "test.automation",
@@ -187,7 +187,7 @@ async def test_if_fires_on_state_change(hass, calls):
"domain": DOMAIN,
"device_id": "",
"entity_id": ent1.entity_id,
"type": "turn_off",
"type": "turned_off",
},
"action": {
"service": "test.automation",
@@ -125,14 +125,14 @@ async def test_get_triggers(hass, device_reg, entity_reg):
{
"platform": "device",
"domain": DOMAIN,
"type": "turn_off",
"type": "turned_off",
"device_id": device_entry.id,
"entity_id": f"{DOMAIN}.test_5678",
},
{
"platform": "device",
"domain": DOMAIN,
"type": "turn_on",
"type": "turned_on",
"device_id": device_entry.id,
"entity_id": f"{DOMAIN}.test_5678",
},
@@ -163,7 +163,7 @@ async def test_if_fires_on_state_change(hass, calls):
"domain": DOMAIN,
"device_id": "",
"entity_id": ent1.entity_id,
"type": "turn_on",
"type": "turned_on",
},
"action": {
"service": "test.automation",
@@ -187,7 +187,7 @@ async def test_if_fires_on_state_change(hass, calls):
"domain": DOMAIN,
"device_id": "",
"entity_id": ent1.entity_id,
"type": "turn_off",
"type": "turned_off",
},
"action": {
"service": "test.automation",