mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
PEP8 style fix
This commit is contained in:
parent
8ae9faf128
commit
c856c117a8
@ -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(
|
||||||
|
state.as_dict(),
|
||||||
status_code=status_code,
|
status_code=status_code,
|
||||||
location=
|
location=rem.URL_API_STATES_ENTITY.format(entity_id))
|
||||||
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))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user