From f7f30004afa82585febcd66ecabcf254409f77d4 Mon Sep 17 00:00:00 2001 From: Yannic Labonte Date: Tue, 20 Aug 2024 01:38:35 +0200 Subject: [PATCH] Fix dmx post data payload conversion --- README.md | 6 +++++- pyproject.toml | 2 +- src/proconip/api.py | 2 +- src/setup.py | 2 +- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 34ca2f0..cd6ce4a 100644 --- a/README.md +++ b/README.md @@ -206,8 +206,12 @@ output), there is a really simple way to support me: ## Release Notes -### v1.4.2 (2024-08-20) +### v1.4.3 (2024-08-20) * Fix new `async_get_raw_dmx()` and `async_get_dmx()` methods. +* Fix new `GetDmxData.post_data` property. +* Update dependencies. + +### v1.4.2 (skipped) ### v1.4.1 (2024-08-18) * Update dependencies diff --git a/pyproject.toml b/pyproject.toml index 568e1b1..16d8d07 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "hatchling.build" [project] name = "proconip" -version = "1.4.2" +version = "1.4.3" authors = [ { name="Yannic Labonte", email="yannic.labonte@gmail.com" }, ] diff --git a/src/proconip/api.py b/src/proconip/api.py index 56a87d8..4bffc5f 100644 --- a/src/proconip/api.py +++ b/src/proconip/api.py @@ -359,7 +359,7 @@ async def async_set_dmx( return await async_post_usrcfg_cgi( client_session=client_session, config=config, - payload="&".join(dmx_states.post_data), + payload="&".join(f"{k}={v}" for k, v in dmx_states.post_data), ) diff --git a/src/setup.py b/src/setup.py index 221de51..2bef23e 100644 --- a/src/setup.py +++ b/src/setup.py @@ -8,4 +8,4 @@ "yarl>=1.9", ] -setup(name="proconip", version="1.4.2", packages=find_packages()) +setup(name="proconip", version="1.4.3", packages=find_packages())