Skip to content

Commit 87f8ff2

Browse files
zweckjfrenck
authored andcommitted
Fix lamarzocco update status (home-assistant#156442)
1 parent b423303 commit 87f8ff2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

homeassistant/components/lamarzocco/update.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def _raise_timeout_error() -> None: # to avoid TRY301
125125
await self.coordinator.device.update_firmware()
126126
while (
127127
update_progress := await self.coordinator.device.get_firmware()
128-
).command_status is UpdateStatus.IN_PROGRESS:
128+
).command_status is not UpdateStatus.UPDATED:
129129
if counter >= MAX_UPDATE_WAIT:
130130
_raise_timeout_error()
131131
self._attr_update_percentage = update_progress.progress_percentage

tests/components/lamarzocco/test_update.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ async def test_update_process(
6262
),
6363
UpdateDetails(
6464
status=UpdateStatus.UPDATED,
65-
command_status=None,
65+
command_status=UpdateStatus.UPDATED,
6666
progress_info=None,
6767
progress_percentage=None,
6868
),

0 commit comments

Comments
 (0)