last_changed value of State is now a string so it can be send over the API
This commit is contained in:
1 parent
308b49b585
commit
102690a770
3 files changed
+23
-13
No files matched your search
@@ -128,7 +128,7 @@ class RequestHandler(BaseHTTPRequestHandler):
|
||||
"</tr>").
|
||||
format(category,
|
||||
state['state'],
|
||||
ha.datetime_to_str(state['last_changed']),
|
||||
state['last_changed'],
|
||||
attributes))
|
||||
|
||||
write("</table>")
|
||||
@@ -211,12 +211,6 @@ class RequestHandler(BaseHTTPRequestHandler):
|
||||
|
||||
state['category'] = category
|
||||
|
||||
state['last_changed'] = ha.datetime_to_str(
|
||||
state['last_changed'])
|
||||
|
||||
|
||||
print state
|
||||
|
||||
self._response(use_json, "State of {}".format(category),
|
||||
json_data=state)
|
||||
|
||||
|
||||
Reference in new issue
Block a user