diff --git a/homeassistant/components/rest_command.py b/homeassistant/components/rest_command.py index dfcb5610073..abf25981af6 100644 --- a/homeassistant/components/rest_command.py +++ b/homeassistant/components/rest_command.py @@ -90,7 +90,7 @@ def async_setup(hass, config): auth=auth ) - if request.status == 200: + if request.status < 400: _LOGGER.info("Success call %s.", request.url) return