forked from M-Labs/thermostat
Proper report
This commit is contained in:
parent
3e20658107
commit
ae9c34f411
@ -160,6 +160,10 @@ class Client:
|
||||
"""
|
||||
return await self._get_conf("postfilter")
|
||||
|
||||
async def report(self):
|
||||
"""Obtain one-time report on measurement values"""
|
||||
return await self._command("report")
|
||||
|
||||
async def report_mode(self):
|
||||
"""Start reporting measurement values
|
||||
|
||||
|
@ -103,7 +103,7 @@ class ClientWatcher(QObject):
|
||||
self.fan_update.emit(await self.client.fan())
|
||||
self.pwm_update.emit(await self.client.get_pwm())
|
||||
if self.poll_for_report:
|
||||
self.report_update.emit(await self.client._command("report"))
|
||||
self.report_update.emit(await self.client.report())
|
||||
self.pid_update.emit(await self.client.get_pid())
|
||||
self.thermistor_update.emit(await self.client.get_steinhart_hart())
|
||||
self.postfilter_update.emit(await self.client.get_postfilter())
|
||||
|
Loading…
Reference in New Issue
Block a user