forked from platypush/platypush
Explicitly case propertyKey to str
This commit is contained in:
parent
2224681e3c
commit
4fe5322600
1 changed files with 1 additions and 1 deletions
|
@ -78,7 +78,7 @@ class ZwaveMqttBackend(MqttBackend):
|
||||||
if value and 'id' not in value:
|
if value and 'id' not in value:
|
||||||
value_id = f"{value['commandClass']}-{value.get('endpoint', 0)}-{value['property']}"
|
value_id = f"{value['commandClass']}-{value.get('endpoint', 0)}-{value['property']}"
|
||||||
if 'propertyKey' in value:
|
if 'propertyKey' in value:
|
||||||
value_id += '-' + value['propertyKey']
|
value_id += '-' + str(value['propertyKey'])
|
||||||
|
|
||||||
if value_id not in node.get('values', {}):
|
if value_id not in node.get('values', {}):
|
||||||
self.logger.warning(f'value_id {value_id} not found on node {node["id"]}')
|
self.logger.warning(f'value_id {value_id} not found on node {node["id"]}')
|
||||||
|
|
Loading…
Reference in a new issue