We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7204f8 commit 6d48aebCopy full SHA for 6d48aeb
dashio/dash_connection.py
@@ -366,13 +366,12 @@ def run(self):
366
device_id = msg_l[1].decode().strip()
367
except IndexError:
368
continue
369
+ data_topic = f"{self.username}/{device_id}/data"
370
if control_type == b'ALM':
371
data_topic = f"{self.username}/{device_id}/alarm"
372
control_type = ""
373
elif msg_to == b"ANNOUNCE":
374
data_topic = f"{self.username}/{device_id}/announce"
- else:
375
- data_topic = f"{self.username}/{device_id}/data"
376
logger.debug("DASH Tx →\n%s", data.decode().rstrip())
377
self._dash_c.publish(data_topic, data.decode())
378
if self.connection_state == ConnectionState.DISCONNECTED:
0 commit comments