1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-26 05:57:01 +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

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