Bump uiprotect to 1.4.1 (#119653)
This commit is contained in:
parent
efa7240ac5
commit
b11d832fb1
4 changed files with 5 additions and 7 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue