forked from home-assistant/core
PEP8 style fix
This commit is contained in:
@@ -415,10 +415,10 @@ class RequestHandler(SimpleHTTPRequestHandler):
|
|||||||
|
|
||||||
status_code = HTTP_CREATED if is_new_state else HTTP_OK
|
status_code = HTTP_CREATED if is_new_state else HTTP_OK
|
||||||
|
|
||||||
self._write_json(state.as_dict(),
|
self._write_json(
|
||||||
status_code=status_code,
|
state.as_dict(),
|
||||||
location=
|
status_code=status_code,
|
||||||
rem.URL_API_STATES_ENTITY.format(entity_id))
|
location=rem.URL_API_STATES_ENTITY.format(entity_id))
|
||||||
else:
|
else:
|
||||||
self._message(
|
self._message(
|
||||||
"State of {} changed to {}".format(entity_id, new_state))
|
"State of {} changed to {}".format(entity_id, new_state))
|
||||||
|
Reference in New Issue
Block a user