Skip to content

Commit d7204f8

Browse files
author
James Boulton
committed
Fix Dash Server Storage enable
1 parent 7cb21f0 commit d7204f8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

dashio/device.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,14 +220,15 @@ def _send_data(self, data: str):
220220
pass
221221

222222
def storage_enable(self, control_type: ControlName, control_id: str) -> None:
223+
"""Turn On Dash Server Storage for the Event Log, Map, or Time Graph control."""
223224
key = f"{control_type.value}\t{control_id}"
224225
if key not in self.controls_dict:
225226
return
226227
if control_type not in [ControlName.LOG, ControlName.MAP, ControlName.TGRPH]:
227228
return
228229
payload = self._device_id_str + f"\tSTE\t{control_type.value}\t{control_id}\n"
229230
logger.debug("STORAGE ENABLE: %s", payload)
230-
self.tx_zmq_pub.send_multipart([b"DASH", payload.encode('utf-8')])
231+
self.tx_zmq_pub.send_multipart([b"ANNOUNCE", payload.encode('utf-8')])
231232

232233
def _send_announce(self):
233234
payload = self._device_id_str + f"\tWHO\t{self.device_type}\t{self.device_name}\n"

0 commit comments

Comments
 (0)