forked from M-Labs/thermostat
Fix redundant code report mode
This commit is contained in:
parent
d7863e5dbd
commit
898a6891cf
|
@ -575,8 +575,6 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow):
|
||||||
self.report_mode_task = asyncio.create_task(self.report_mode())
|
self.report_mode_task = asyncio.create_task(self.report_mode())
|
||||||
else:
|
else:
|
||||||
self.client.stop_report_mode()
|
self.client.stop_report_mode()
|
||||||
await self.report_mode_task
|
|
||||||
self.report_mode_task = None
|
|
||||||
|
|
||||||
async def report_mode(self):
|
async def report_mode(self):
|
||||||
async for report in self.client.report_mode():
|
async for report in self.client.report_mode():
|
||||||
|
|
Loading…
Reference in New Issue