mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 17:57:11 +00:00
Use device class in TPLink Omada Update entity (#98971)
This commit is contained in:
parent
089f76099d
commit
998a390da5
@ -8,7 +8,11 @@ from tplink_omada_client.devices import OmadaFirmwareUpdate, OmadaListDevice
|
|||||||
from tplink_omada_client.exceptions import OmadaClientException, RequestFailed
|
from tplink_omada_client.exceptions import OmadaClientException, RequestFailed
|
||||||
from tplink_omada_client.omadasiteclient import OmadaSiteClient
|
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.config_entries import ConfigEntry
|
||||||
from homeassistant.core import HomeAssistant, callback
|
from homeassistant.core import HomeAssistant, callback
|
||||||
from homeassistant.exceptions import HomeAssistantError
|
from homeassistant.exceptions import HomeAssistantError
|
||||||
@ -94,7 +98,7 @@ class OmadaDeviceUpdate(
|
|||||||
| UpdateEntityFeature.RELEASE_NOTES
|
| UpdateEntityFeature.RELEASE_NOTES
|
||||||
)
|
)
|
||||||
_attr_has_entity_name = True
|
_attr_has_entity_name = True
|
||||||
_attr_name = "Firmware update"
|
_attr_device_class = UpdateDeviceClass.FIRMWARE
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user