not sure that the logs are visible... so here the loop in a single err msg:
2020-09-03 10:06:30 ERROR (Update loop) [pyShelly] Error update loop, name 'new_value' is not defined, Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.7/site-packages/pyShelly/__init__.py", line 289, in _update_loop
block.loop()
File "/srv/homeassistant/lib/python3.7/site-packages/pyShelly/block.py", line 113, in loop
self.set_info_value(iv, new_value, None)
NameError: name 'new_value' is not defined
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.7/site-packages/pyShelly/__init__.py", line 289, in _update_loop
block.loop()
File "/srv/homeassistant/lib/python3.7/site-packages/pyShelly/block.py", line 113, in loop
self.set_info_value(iv, new_value, None)
NameError: name 'new_value' is not defined
Found and will be fixed in next beta today
@hakana
just for the completeness, seems to be an uncaught exception, not sure if thie is the same error:
2020-09-03 14:12:03 ERROR (Poll status) [root] Uncaught exception
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/util/thread.py", line 20, in run
run_old(args, kwargs)
File "/usr/lib/python3.7/threading.py", line 865, in run
self._target(self._args, *self._kwargs)
*File "/srv/homeassistant/lib/python3.7/site-packages/pyShelly/block.py", line 129, in update_status_information
if diff < 600 or (diff < 3600 and self.status_update_error_cnt >= 5):
TypeError: '<' not supported between instances of 'builtin_function_or_method' and 'int'
@hakana unfortunately still the same problem after installing beta6, just another line of block.py causes the issue:
2020-09-04 07:45:50 ERROR (Update loop) [pyShelly] Error update loop, name 'new_val' is not defined, Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.7/site-packages/pyShelly/__init__.py", line 289, in _update_loop
block.loop()
File "/srv/homeassistant/lib/python3.7/site-packages/pyShelly/block.py", line 107, in loop
if value != new_val:
NameError: name 'new_val' is not defined
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.7/site-packages/pyShelly/__init__.py", line 289, in _update_loop
block.loop()
File "/srv/homeassistant/lib/python3.7/site-packages/pyShelly/block.py", line 107, in loop
if value != new_val:
NameError: name 'new_val' is not defined
@hakana After update with the latest beta 7, no crashes or errors in the log file anymore. For me I would say, this is also fixed and can be closed.
@n3tkiller What about you? Can you confirm?
Hi @galex8, yes. The fix worked for me even before the release of the beta 7. I will close the issue. Thanks for reminding :)
Great!