Add case for test message
This commit is contained in:
parent
25e1432403
commit
c23375a18b
1 changed files with 6 additions and 1 deletions
|
@ -77,7 +77,12 @@ def _handle_get_api_locative(hass, see, handler, path_match, data):
|
||||||
# the previous zone was exited. The enter message will be sent
|
# the previous zone was exited. The enter message will be sent
|
||||||
# first, then the exit message will be sent second.
|
# first, then the exit message will be sent second.
|
||||||
handler.write_json_message(
|
handler.write_json_message(
|
||||||
"Ignoring transition to {}".format(location_name))
|
"Ignoring transition from {}".format(location_name))
|
||||||
|
|
||||||
|
elif direction == 'test':
|
||||||
|
# In the app, a test message can be sent. Just return something to
|
||||||
|
# the user to let them know that it works.
|
||||||
|
handler.write_text("Received test message.")
|
||||||
|
|
||||||
else:
|
else:
|
||||||
handler.write_json_message(
|
handler.write_json_message(
|
||||||
|
|
Loading…
Add table
Reference in a new issue