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

This commit is contained in:
Erik Montnemery authored and Paulus Schoutsen committed 2019-10-05 13:39:42 -07:00
1 parent fdb6035275
commit 143e42362b
2 files changed
+8 -2

No files matched your search

@@ -88,7 +88,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)