Move WLED update title to class attribute (#68470)

This commit is contained in:
Franck Nijhof 2022-03-21 15:51:46 +01:00 committed by GitHub
parent 1072aff017
commit c56b77f2b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,13 +35,13 @@ class WLEDUpdateEntity(WLEDEntity, UpdateEntity):
_attr_supported_features = (
UpdateEntityFeature.INSTALL | UpdateEntityFeature.SPECIFIC_VERSION
)
_attr_title = "WLED"
def __init__(self, coordinator: WLEDDataUpdateCoordinator) -> None:
"""Initialize the update entity."""
super().__init__(coordinator=coordinator)
self._attr_name = f"{coordinator.data.info.name} Firmware"
self._attr_unique_id = coordinator.data.info.mac_address
self._attr_title = "WLED"
@property
def current_version(self) -> str | None: