diff --git a/neohubapi/neohub.py b/neohubapi/neohub.py index 7d79a99..b0371f0 100644 --- a/neohubapi/neohub.py +++ b/neohubapi/neohub.py @@ -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)