Use device class in TPLink Omada Update entity (#98971)

pull/98951/head
Joost Lekkerkerker 2023-08-24 19:53:09 +02:00 committed by GitHub
parent 089f76099d
commit 998a390da5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions

View File

@ -8,7 +8,11 @@ from tplink_omada_client.devices import OmadaFirmwareUpdate, OmadaListDevice
from tplink_omada_client.exceptions import OmadaClientException, RequestFailed
from tplink_omada_client.omadasiteclient import OmadaSiteClient
from homeassistant.components.update import UpdateEntity, UpdateEntityFeature
from homeassistant.components.update import (
UpdateDeviceClass,
UpdateEntity,
UpdateEntityFeature,
)
from homeassistant.config_entries import ConfigEntry
from homeassistant.core import HomeAssistant, callback
from homeassistant.exceptions import HomeAssistantError
@ -94,7 +98,7 @@ class OmadaDeviceUpdate(
| UpdateEntityFeature.RELEASE_NOTES
)
_attr_has_entity_name = True
_attr_name = "Firmware update"
_attr_device_class = UpdateDeviceClass.FIRMWARE
def __init__(
self,