1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Remaining DeviceAutomationType bits (#62508)

* Use DeviceAutomationType in missed tests/components/*

* Tighten device automation type hints
This commit is contained in:
Ville Skyttä
2021-12-21 20:05:48 +02:00
committed by GitHub
parent 498720f3c9
commit 9b437ef146
15 changed files with 29 additions and 27 deletions

View File

@@ -116,7 +116,7 @@ async def test_get_trigger_capabilities(hass, device_reg, entity_reg):
assert len(triggers) == 5
for trigger in triggers:
capabilities = await async_get_device_automation_capabilities(
hass, "trigger", trigger
hass, DeviceAutomationType.TRIGGER, trigger
)
assert capabilities == {
"extra_fields": [