Bump uiprotect to 1.4.1 (#119653)

This commit is contained in:
J. Nick Koston 2024-06-13 21:01:25 -05:00 committed by GitHub
parent efa7240ac5
commit b11d832fb1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 5 additions and 7 deletions

View file

@ -92,10 +92,8 @@ def async_get_devices_by_type(
bootstrap: Bootstrap, device_type: ModelType
) -> dict[str, ProtectAdoptableDeviceModel]:
"""Get devices by type."""
devices: dict[str, ProtectAdoptableDeviceModel] = getattr(
bootstrap, f"{device_type.value}s"
)
devices: dict[str, ProtectAdoptableDeviceModel]
devices = getattr(bootstrap, device_type.devices_key)
return devices