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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user