Skip to content
Snippets Groups Projects
Commit 82b82385 authored by Dónal Murray's avatar Dónal Murray
Browse files

Make hevserver backwards compatible for CMD_START and STOP

parent 77f35359
Branches
No related merge requests found
......@@ -100,6 +100,7 @@ class HEVServer(object):
# temporary, since CMD_START and CMD_STOP are now deprecated
reqcmdtype = "GENERAL" # fake a general command
logging.warning("CMD_START AND CMD_STOP are deprecated and will be removed in a future release.")
reqcmd = reqcmd.split("_")[1]
else:
reqcmdtype = request["cmdtype"]
reqparam = request["param"] if request["param"] is not None else 0
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment