Explicitly case propertyKey to str

This commit is contained in:
Fabio Manganiello 2021-04-22 23:23:41 +02:00
parent 2224681e3c
commit 4fe5322600
1 changed files with 1 additions and 1 deletions

View File

@ -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"]}')