Add above and below to sensor trigger extra_fields (#27160)

This commit is contained in:
Erik Montnemery 2019-10-03 22:17:58 +02:00 committed by GitHub
parent bb45bdd8dd
commit 9902209ad2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View file

@ -86,7 +86,9 @@ async def test_get_trigger_capabilities(hass, device_reg, entity_reg):
entity_reg.async_get_or_create(DOMAIN, "test", "5678", device_id=device_entry.id)
expected_capabilities = {
"extra_fields": [
{"name": "for", "optional": True, "type": "positive_time_period_dict"}
{"name": "above", "optional": True, "type": "float"},
{"name": "below", "optional": True, "type": "float"},
{"name": "for", "optional": True, "type": "positive_time_period_dict"},
]
}
triggers = await async_get_device_automations(hass, "trigger", device_entry.id)