We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 66ff8ec commit 56b6bb1Copy full SHA for 56b6bb1
1 file changed
airos/base.py
@@ -461,9 +461,8 @@ async def reboot(self) -> bool:
461
authenticated=True,
462
)
463
464
- if result.get("ok") == "true":
465
- return True
466
- return False
+ ok_value = result.get("ok")
+ return ok_value is True or ok_value == "true"
467
468
async def provmode(self, active: bool = False) -> bool:
469
"""Set provisioning mode."""
0 commit comments