forked from M-Labs/thermostat
Don't create report task if not polling for it
This commit is contained in:
parent
f45d2c5c9e
commit
969a7be0cc
@ -69,7 +69,8 @@ class Thermostat(QObject, metaclass=PropertyMeta):
|
|||||||
fan_task = asyncio.create_task(self._client.get_fan())
|
fan_task = asyncio.create_task(self._client.get_fan())
|
||||||
pwm_task = asyncio.create_task(self._client.get_pwm())
|
pwm_task = asyncio.create_task(self._client.get_pwm())
|
||||||
pid_task = asyncio.create_task(self._client.get_pid())
|
pid_task = asyncio.create_task(self._client.get_pid())
|
||||||
report_task = asyncio.create_task(self._client.report())
|
if self._poll_for_report:
|
||||||
|
report_task = asyncio.create_task(self._client.report())
|
||||||
thermistor_task = asyncio.create_task(self._client.get_steinhart_hart())
|
thermistor_task = asyncio.create_task(self._client.get_steinhart_hart())
|
||||||
postfilter_task = asyncio.create_task(self._client.get_postfilter())
|
postfilter_task = asyncio.create_task(self._client.get_postfilter())
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user