Adjust device_automation type hints in shelly (#72139)

pull/72146/head^2
epenet 2022-05-19 09:12:54 +02:00 committed by GitHub
parent be809980a1
commit 7e2f5968cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -108,9 +108,9 @@ async def async_validate_trigger_config(
async def async_get_triggers(
hass: HomeAssistant, device_id: str
) -> list[dict[str, Any]]:
) -> list[dict[str, str]]:
"""List device triggers for Shelly devices."""
triggers: list[dict[str, Any]] = []
triggers: list[dict[str, str]] = []
if rpc_wrapper := get_rpc_device_wrapper(hass, device_id):
input_triggers = get_rpc_input_triggers(rpc_wrapper.device)