Pass the RHS of the enum value rather than the whole element.
This commit is contained in:
parent
1f44cde9a3
commit
e10b1de9ae
|
@ -149,7 +149,7 @@ class NeoHub:
|
||||||
if not isinstance(sched_format, ScheduleFormat):
|
if not isinstance(sched_format, ScheduleFormat):
|
||||||
raise NeoHubUsageError('sched_format must be a ScheduleFormat')
|
raise NeoHubUsageError('sched_format must be a ScheduleFormat')
|
||||||
|
|
||||||
message = {"SET_FORMAT": sched_format}
|
message = {"SET_FORMAT": sched_format.value}
|
||||||
reply = {"result": "Format was set"}
|
reply = {"result": "Format was set"}
|
||||||
|
|
||||||
result = await self._send(message, reply)
|
result = await self._send(message, reply)
|
||||||
|
|
Loading…
Reference in New Issue