Use device class translations for Devolo Update entity (#99235)

This commit is contained in:
Joost Lekkerkerker 2023-09-09 01:16:51 +02:00 committed by GitHub
parent d59aa958b6
commit 75f923a86e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -92,7 +92,6 @@ class DevoloUpdateEntity(DevoloCoordinatorEntity, UpdateEntity):
"""Initialize entity."""
self.entity_description = description
super().__init__(entry, coordinator, device)
self._attr_translation_key = None
self._in_progress_old_version: str | None = None
@property
@ -124,7 +123,7 @@ class DevoloUpdateEntity(DevoloCoordinatorEntity, UpdateEntity):
except DevicePasswordProtected as ex:
self.entry.async_start_reauth(self.hass)
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
except DeviceUnavailable as ex:
raise HomeAssistantError(