Revert wrong topic_prefix handling

This commit is contained in:
zewelor
2018-12-19 11:53:44 +01:00
parent 0252aac8ae
commit 1dad41cbc4
+1 -2
View File
@@ -71,8 +71,7 @@ class ThermostatWorker(BaseWorker):
return ret
def on_command(self, topic, value):
if self.topic_prefix:
_, device_name, method, _ = topic[len(self.topic_prefix+"/"):].split('/')
_, device_name, method, _ = topic.split('/')
thermostat = self.devices[device_name]