Fix miscale worker
This commit is contained in:
+1
-1
@@ -12,7 +12,7 @@ REQUIREMENTS = ['bluepy']
|
|||||||
|
|
||||||
class MiscaleWorker(BaseWorker):
|
class MiscaleWorker(BaseWorker):
|
||||||
def status_update(self):
|
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):
|
def _get_weight(self):
|
||||||
from bluepy import btle
|
from bluepy import btle
|
||||||
|
|||||||
Reference in New Issue
Block a user