Fix miscale worker

This commit is contained in:
zewelor
2017-11-29 10:35:30 +01:00
parent 1bc7b1f92b
commit 2295cdc1df
+1 -1
View File
@@ -12,7 +12,7 @@ REQUIREMENTS = ['bluepy']
class MiscaleWorker(BaseWorker):
def status_update(self):
return [MqttMessage(topic='weight/kg', payload=self._get_weight())]
return [MqttMessage(topic=self.format_topic('weight/kg'), payload=self._get_weight())]
def _get_weight(self):
from bluepy import btle