Bump aiounifi to v35 (#79040)
* Update imports Replace constants with enums * Import new request objects * Bump aiounifi to v35
This commit is contained in:
parent
42bd664305
commit
bfd12730f2
11 changed files with 98 additions and 84 deletions
|
@ -4,6 +4,8 @@ from __future__ import annotations
|
|||
import logging
|
||||
from typing import Any
|
||||
|
||||
from aiounifi.models.device import DeviceUpgradeRequest
|
||||
|
||||
from homeassistant.components.update import (
|
||||
DOMAIN,
|
||||
UpdateDeviceClass,
|
||||
|
@ -136,4 +138,4 @@ class UniFiDeviceUpdateEntity(UniFiBase, UpdateEntity):
|
|||
self, version: str | None, backup: bool, **kwargs: Any
|
||||
) -> None:
|
||||
"""Install an update."""
|
||||
await self.controller.api.devices.upgrade(self.device.mac)
|
||||
await self.controller.api.request(DeviceUpgradeRequest.create(self.device.mac))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue