Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions pycheckwatt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,13 @@ async def _continue_kill_switch_not_enabled(self):
)
return False

if response.status == 404:
# Kill was requested by removing kill-switch file
_LOGGER.error(
"CheckWatt has requested to back down by removing kill-switch file"
)
return False

if response.status == 401:
_LOGGER.error(
"Unauthorized: Check your CheckWatt authentication credentials"
Expand Down
Loading