Skip to content

Commit

Permalink
Fix device trigger (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
natekspencer authored Jun 27, 2022
1 parent 27615b1 commit 9ababc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/vivint/device_trigger.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ async def async_get_vivint_device(
hass: HomeAssistant, device_id: str
) -> VivintDevice | None:
"""Get a Vivint device for the given device registry id."""
device_registry: DeviceRegistry = hass.helpers.device_registry.async_get()
device_registry: DeviceRegistry = hass.helpers.device_registry.async_get(hass)
registry_device = device_registry.async_get(device_id)
identifier = list(list(registry_device.identifiers)[0])[1]
[panel_id, vivint_device_id] = [int(item) for item in identifier.split("-")]
Expand Down

0 comments on commit 9ababc1

Please sign in to comment.