1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-26 22:18:40 +00:00

Make device automation type an enum (#62354)

This commit is contained in:
Ville Skyttä
2021-12-20 20:16:30 +02:00
committed by GitHub
parent 2ddd45afd5
commit 334c6c5c02
12 changed files with 120 additions and 43 deletions

View File

@@ -69,7 +69,9 @@ CLIENT_REDIRECT_URI = "https://example.com/app/callback"
async def async_get_device_automations(
hass: HomeAssistant, automation_type: str, device_id: str
hass: HomeAssistant,
automation_type: device_automation.DeviceAutomationType | str,
device_id: str,
) -> Any:
"""Get a device automation for a single device id."""
automations = await device_automation.async_get_device_automations(