Skip to content

Commit 56b6bb1

Browse files
committed
Already parsed JSON
1 parent 66ff8ec commit 56b6bb1

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

airos/base.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -461,9 +461,8 @@ async def reboot(self) -> bool:
461461
authenticated=True,
462462
)
463463

464-
if result.get("ok") == "true":
465-
return True
466-
return False
464+
ok_value = result.get("ok")
465+
return ok_value is True or ok_value == "true"
467466

468467
async def provmode(self, active: bool = False) -> bool:
469468
"""Set provisioning mode."""

0 commit comments

Comments
 (0)