From e10b1de9ae7e09c0d270494a04ce630013b7b30c Mon Sep 17 00:00:00 2001 From: Dave O'Connor Date: Sun, 24 Jan 2021 17:42:41 +0000 Subject: [PATCH] Pass the RHS of the enum value rather than the whole element. --- neohubapi/neohub.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)