Adjust device_automation type hints in deconz (#72129)

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

View File

@ -703,7 +703,7 @@ async def async_attach_trigger(
async def async_get_triggers(
hass: HomeAssistant,
device_id: str,
) -> list | None:
) -> list[dict[str, str]]:
"""List device triggers.
Make sure device is a supported remote model.
@ -714,7 +714,7 @@ async def async_get_triggers(
device = device_registry.devices[device_id]
if device.model not in REMOTES:
return None
return []
triggers = []
for trigger, subtype in REMOTES[device.model].keys():