mirror of
https://github.com/python-kasa/python-kasa.git
synced 2024-12-22 19:23:34 +00:00
c865d3f02c
* Fix unsafe __del__ in TPLinkSmartHomeProtocol Fixes ``` Exception ignored in: <function TPLinkSmartHomeProtocol.__del__ at 0x1096d0670> Traceback (most recent call last): File "/Users/bdraco/home-assistant/venv/lib/python3.9/site-packages/kasa/protocol.py", line 159, in __del__ self.writer.close() File "/opt/homebrew/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/asyncio/streams.py", line 353, in close return self._transport.close() File "/opt/homebrew/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/asyncio/selector_events.py", line 700, in close self._loop.call_soon(self._call_connection_lost, None) File "/opt/homebrew/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/asyncio/base_events.py", line 748, in call_soon self._check_thread() File "/opt/homebrew/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/asyncio/base_events.py", line 785, in _check_thread raise RuntimeError( RuntimeError: Non-thread-safe operation invoked on an event loop other than the current one ``` * comment * comment * comment |
||
---|---|---|
.. | ||
tests | ||
__init__.py | ||
cli.py | ||
discover.py | ||
emeterstatus.py | ||
exceptions.py | ||
protocol.py | ||
py.typed | ||
smartbulb.py | ||
smartdevice.py | ||
smartdimmer.py | ||
smartlightstrip.py | ||
smartplug.py | ||
smartstrip.py |