Add support for for to binary_sensor, light and switch device conditions (#27153)

* Add support for `for` to binary_sensor, light and switch device conditions

* Fix typing

* Fixup

* Fixup
This commit is contained in:
Erik Montnemery authored and Paulus Schoutsen committed 2019-10-03 13:29:57 -07:00
1 parent 4733fea416
commit cda7692f24
13 files changed
+447 -12

No files matched your search

@@ -32,6 +32,6 @@ async def async_get_triggers(hass: HomeAssistant, device_id: str) -> List[dict]:
return await toggle_entity.async_get_triggers(hass, device_id, DOMAIN)
async def async_get_trigger_capabilities(hass: HomeAssistant, trigger: dict) -> dict:
async def async_get_trigger_capabilities(hass: HomeAssistant, config: dict) -> dict:
"""List trigger capabilities."""
return await toggle_entity.async_get_trigger_capabilities(hass, trigger)
return await toggle_entity.async_get_trigger_capabilities(hass, config)