Fix lamarzocco update status (#156442)

This commit is contained in:
Josef Zweck
2025-11-14 21:12:08 +00:00
committed by Franck Nijhof
parent b423303f1e
commit 87f8ff2bb4
2 changed files with 2 additions and 2 deletions
@@ -125,7 +125,7 @@ class LaMarzoccoUpdateEntity(LaMarzoccoEntity, UpdateEntity):
await self.coordinator.device.update_firmware()
while (
update_progress := await self.coordinator.device.get_firmware()
).command_status is UpdateStatus.IN_PROGRESS:
).command_status is not UpdateStatus.UPDATED:
if counter >= MAX_UPDATE_WAIT:
_raise_timeout_error()
self._attr_update_percentage = update_progress.progress_percentage
+1 -1
View File
@@ -62,7 +62,7 @@ async def test_update_process(
),
UpdateDetails(
status=UpdateStatus.UPDATED,
command_status=None,
command_status=UpdateStatus.UPDATED,
progress_info=None,
progress_percentage=None,
),