mirror of
https://github.com/home-assistant/core.git
synced 2025-12-25 05:26:47 +00:00
Remaining DeviceAutomationType bits (#62508)
* Use DeviceAutomationType in missed tests/components/* * Tighten device automation type hints
This commit is contained in:
@@ -137,7 +137,7 @@ async def test_get_condition_capabilities(hass, device_reg, entity_reg):
|
||||
)
|
||||
for condition in conditions:
|
||||
capabilities = await async_get_device_automation_capabilities(
|
||||
hass, "condition", condition
|
||||
hass, DeviceAutomationType.CONDITION, condition
|
||||
)
|
||||
assert capabilities == expected_capabilities
|
||||
|
||||
|
||||
@@ -140,7 +140,7 @@ async def test_get_trigger_capabilities(hass, device_reg, entity_reg):
|
||||
)
|
||||
for trigger in triggers:
|
||||
capabilities = await async_get_device_automation_capabilities(
|
||||
hass, "trigger", trigger
|
||||
hass, DeviceAutomationType.TRIGGER, trigger
|
||||
)
|
||||
assert capabilities == expected_capabilities
|
||||
|
||||
|
||||
Reference in New Issue
Block a user