Skip to content

Commit

Permalink
fix caching problem by bumping API to 0.3.1 and add debug message
Browse files Browse the repository at this point in the history
  • Loading branch information
steinbach committed May 31, 2021
1 parent 595df48 commit 3c32ee1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
weconnect==0.3.0
weconnect==0.3.1
paho-mqtt==1.5.1
2 changes: 1 addition & 1 deletion weconnect_mqtt/weconnect_mqtt.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def onWeConnectEvent(self, element, flags):
convertedValue = element.value.value
else:
convertedValue = str(element.value)

LOG.debug('%s%s, value changed: new value is: %s', self.prefix, element.getGlobalAddress(), convertedValue)
self.publish(topic=f'{self.prefix}{element.getGlobalAddress()}', payload=convertedValue)

def on_connect_callback(self, mqttc, obj, flags, rc):
Expand Down

0 comments on commit 3c32ee1

Please sign in to comment.