From 4fe532260034ba630a9143331e5ea5d4e4d8689a Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Thu, 22 Apr 2021 23:23:41 +0200 Subject: [PATCH] Explicitly case propertyKey to str --- platypush/backend/zwave/mqtt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platypush/backend/zwave/mqtt.py b/platypush/backend/zwave/mqtt.py index 609846f97..7d38c8e18 100644 --- a/platypush/backend/zwave/mqtt.py +++ b/platypush/backend/zwave/mqtt.py @@ -78,7 +78,7 @@ class ZwaveMqttBackend(MqttBackend): if value and 'id' not in value: value_id = f"{value['commandClass']}-{value.get('endpoint', 0)}-{value['property']}" if 'propertyKey' in value: - value_id += '-' + value['propertyKey'] + value_id += '-' + str(value['propertyKey']) if value_id not in node.get('values', {}): self.logger.warning(f'value_id {value_id} not found on node {node["id"]}')