diff --git a/pycheckwatt/__init__.py b/pycheckwatt/__init__.py index 69dea5f..382cee2 100644 --- a/pycheckwatt/__init__.py +++ b/pycheckwatt/__init__.py @@ -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"