mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Use device class translations for Devolo Update entity (#99235)
This commit is contained in:
parent
d59aa958b6
commit
75f923a86e
@ -92,7 +92,6 @@ class DevoloUpdateEntity(DevoloCoordinatorEntity, UpdateEntity):
|
|||||||
"""Initialize entity."""
|
"""Initialize entity."""
|
||||||
self.entity_description = description
|
self.entity_description = description
|
||||||
super().__init__(entry, coordinator, device)
|
super().__init__(entry, coordinator, device)
|
||||||
self._attr_translation_key = None
|
|
||||||
self._in_progress_old_version: str | None = None
|
self._in_progress_old_version: str | None = None
|
||||||
|
|
||||||
@property
|
@property
|
||||||
@ -124,7 +123,7 @@ class DevoloUpdateEntity(DevoloCoordinatorEntity, UpdateEntity):
|
|||||||
except DevicePasswordProtected as ex:
|
except DevicePasswordProtected as ex:
|
||||||
self.entry.async_start_reauth(self.hass)
|
self.entry.async_start_reauth(self.hass)
|
||||||
raise HomeAssistantError(
|
raise HomeAssistantError(
|
||||||
f"Device {self.entry.title} require re-authenticatication to set or change the password"
|
f"Device {self.entry.title} require re-authentication to set or change the password"
|
||||||
) from ex
|
) from ex
|
||||||
except DeviceUnavailable as ex:
|
except DeviceUnavailable as ex:
|
||||||
raise HomeAssistantError(
|
raise HomeAssistantError(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user