forked from home-assistant/core
remove unneccessary entity description
This commit is contained in:
@@ -4,7 +4,7 @@ from __future__ import annotations
|
|||||||
|
|
||||||
from awesomeversion import AwesomeVersion
|
from awesomeversion import AwesomeVersion
|
||||||
|
|
||||||
from homeassistant.components.update import UpdateEntity, UpdateEntityDescription
|
from homeassistant.components.update import UpdateEntity
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
from homeassistant.helpers.entity_platform import AddConfigEntryEntitiesCallback
|
from homeassistant.helpers.entity_platform import AddConfigEntryEntitiesCallback
|
||||||
|
|
||||||
@@ -38,10 +38,7 @@ class ImmichUpdateEntity(ImmichEntity, UpdateEntity):
|
|||||||
"""Initialize."""
|
"""Initialize."""
|
||||||
super().__init__(coordinator)
|
super().__init__(coordinator)
|
||||||
self._attr_unique_id = f"{coordinator.config_entry.unique_id}_update"
|
self._attr_unique_id = f"{coordinator.config_entry.unique_id}_update"
|
||||||
self.entity_description = UpdateEntityDescription(
|
self._attr_translation_key = "update"
|
||||||
key="update",
|
|
||||||
translation_key="update",
|
|
||||||
)
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def installed_version(self) -> str:
|
def installed_version(self) -> str:
|
||||||
|
Reference in New Issue
Block a user