Pass the RHS of the enum value rather than the whole element.

This commit is contained in:
Dave O'Connor 2021-01-24 17:42:41 +00:00
parent 1f44cde9a3
commit e10b1de9ae
1 changed files with 1 additions and 1 deletions

View File

@ -149,7 +149,7 @@ class NeoHub:
if not isinstance(sched_format, 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"}
result = await self._send(message, reply)