From 8bbeed59fd7bb18c42131590e6d25544db3091fa Mon Sep 17 00:00:00 2001 From: Dan Trickey Date: Sun, 11 Jul 2021 10:46:02 +0100 Subject: [PATCH] Bump version to 0.2.2 and fix bug in serialisation of models --- hue2mqtt/__init__.py | 2 +- hue2mqtt/mqtt/wrapper.py | 2 +- pyproject.toml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hue2mqtt/__init__.py b/hue2mqtt/__init__.py index e9e6a2b..1168455 100644 --- a/hue2mqtt/__init__.py +++ b/hue2mqtt/__init__.py @@ -8,4 +8,4 @@ "__version__", ] -__version__ = "0.2.1" +__version__ = "0.2.2" diff --git a/hue2mqtt/mqtt/wrapper.py b/hue2mqtt/mqtt/wrapper.py index 2fa8ca6..01a5c95 100644 --- a/hue2mqtt/mqtt/wrapper.py +++ b/hue2mqtt/mqtt/wrapper.py @@ -157,7 +157,7 @@ def publish( self._client.publish( str(topic_complete), - payload.json(), + payload.json(by_alias=True), qos=1, retain=retain, ) diff --git a/pyproject.toml b/pyproject.toml index 3a38588..8fce0fc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "hue2mqtt" -version = "0.2.1" +version = "0.2.2" description = "Python Hue to MQTT Bridge" authors = ["Dan Trickey "] license = "MIT"