Skip to content

Commit

Permalink
fix: fix handling of could_not_wake_buses
Browse files Browse the repository at this point in the history
  • Loading branch information
alandtse committed Feb 9, 2020
1 parent 5f1e34d commit 990ee3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions teslajsonpy/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,8 @@ def valid_result(result):
isinstance(result, dict)
and isinstance(result["response"], dict)
and (
result["response"].get("result") is not False
or result["response"].get("result")
result["response"].get("result") is True
or result["response"].get("reason")
!= "could_not_wake_buses"
)
)
Expand Down

0 comments on commit 990ee3d

Please sign in to comment.