Skip to content

Commit d7aae51

Browse files
author
marq24
committed
write NONE as None (and not as 'null') in websocket - fixing #124
1 parent b0b95c8 commit d7aae51

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

custom_components/goecharger_api2/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@
1212
"iot_class": "local_push",
1313
"issue_tracker": "https://github.com/marq24/ha-goecharger-api2/issues",
1414
"requirements": ["packaging>=21.0", "msgpack>=1.1.2", "bcrypt>=4.2.0"],
15-
"version": "2026.3.7"
15+
"version": "2026.3.8"
1616
}

custom_components/goecharger_api2/pygoecharger_ha/__init__.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -538,8 +538,11 @@ async def _ws_send_command(self, key: str, value):
538538
_LOGGER.debug(f"_ws_send_command(): Sending {key}:{value} via WebSocket...")
539539
self._ws_request_id_counter += 1
540540

541-
if value is None:
542-
value = "null"
541+
# looks like that we must really provide 'None' as the json value - so no
542+
# special handling is required when we want to set the value to 'null'...
543+
# see https://github.com/marq24/ha-goecharger-api2/issues/124
544+
#if value is None:
545+
# value = "null"
543546

544547
original_message = {
545548
"type": "setValue",

0 commit comments

Comments
 (0)