ktostam / HaierPi

initial
4 stars 2 forks source link

bad data type compare #61

Open koooocur opened 7 months ago

koooocur commented 7 months ago

Mar 18 18:07:48 DietPi HaierPi[32438]: INFO:root:ischanged: status pcool has changed. Set new value - off Mar 18 18:07:48 DietPi HaierPi[32438]: INFO:root:ischanged: status pdhw has changed. Set new value - on Mar 18 18:07:48 DietPi HaierPi[32438]: INFO:root:ischanged: status intemp has changed. Set new value - 20.62 Mar 18 18:07:48 DietPi HaierPi[32438]: INFO:root:ischanged: status outtemp has changed. Set new value - 0.4 Mar 18 18:07:48 DietPi HaierPi[32438]: INFO:root:ischanged: status humid has changed. Set new value - 52.0 Mar 18 18:07:48 DietPi HaierPi[32438]: Exception in thread Thread-1: Mar 18 18:07:48 DietPi HaierPi[32438]: Traceback (most recent call last): Mar 18 18:07:48 DietPi HaierPi[32438]: File "/usr/lib/python3.9/threading.py", line 954, in _bootstrap_inner Mar 18 18:07:48 DietPi HaierPi[32438]: self.run() Mar 18 18:07:48 DietPi HaierPi[32438]: File "/usr/lib/python3.9/threading.py", line 892, in run Mar 18 18:07:48 DietPi HaierPi[32438]: self._target(*self._args, **self._kwargs) Mar 18 18:07:48 DietPi HaierPi[32438]: File "/opt/haier/main.py", line 1422, in run_background_function Mar 18 18:07:48 DietPi HaierPi[32438]: run_pending() Mar 18 18:07:48 DietPi HaierPi[32438]: File "/opt/haier/env/lib/python3.9/site-packages/schedule/init.py", line 822, in run_pending Mar 18 18:07:48 DietPi HaierPi[32438]: default_scheduler.run_pending() Mar 18 18:07:48 DietPi HaierPi[32438]: File "/opt/haier/env/lib/python3.9/site-packages/schedule/init.py", line 100, in run_pending Mar 18 18:07:48 DietPi HaierPi[32438]: self._run_job(job) Mar 18 18:07:48 DietPi HaierPi[32438]: File "/opt/haier/env/lib/python3.9/site-packages/schedule/init.py", line 172, in _run_job Mar 18 18:07:48 DietPi HaierPi[32438]: ret = job.run() Mar 18 18:07:48 DietPi HaierPi[32438]: File "/opt/haier/env/lib/python3.9/site-packages/schedule/init.py", line 693, in run Mar 18 18:07:48 DietPi HaierPi[32438]: ret = self.job_func() Mar 18 18:07:48 DietPi HaierPi[32438]: File "/opt/haier/main.py", line 1153, in GetParameters Mar 18 18:07:48 DietPi HaierPi[32438]: if dhwwl == "1" and compinfo[0] > 0 and threeway == "DHW" and (flimiton == "1" or preset != "turbo"): Mar 18 18:07:48 DietPi HaierPi[32438]: TypeError: '>' not supported between instances of 'str' and 'int' Mar 18 18:07:49 DietPi HaierPi[32438]: ERROR:root:Background thread DEAD