Skip to content

Commit

Permalink
Decades: Wait until params are received before signalling device is open
Browse files Browse the repository at this point in the history
Closes #666.
  • Loading branch information
alexdewar committed Dec 9, 2024
1 parent f38bd5b commit 3a2cc7b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions finesse/hardware/plugins/sensors/decades.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ class Decades(
"documentation."
),
},
async_open=True,
):
"""A class for monitoring a DECADES sensor server."""

Expand Down Expand Up @@ -204,6 +205,9 @@ def _on_params_received(self, reply: QNetworkReply, params: Set[str]) -> None:
else:
self._params = list(_get_selected_params(all_params_info, params))

# Tell the frontend that the device is ready
self.signal_is_opened()

# Now we have enough information to start parsing sensor readings
self.start_polling()
self.request_readings()

0 comments on commit 3a2cc7b

Please sign in to comment.