-
-
Notifications
You must be signed in to change notification settings - Fork 36.8k
Description
The problem
Each time I stop or restart home assistant I get the following in the docker logs for the container:
s6-rc: info: service legacy-services: stopping
2025-01-23 20:23:22.624 ERROR (Thread-2 (_connect)) [root] Uncaught thread exception
Traceback (most recent call last):
File "/usr/local/lib/python3.13/threading.py", line 1041, in _bootstrap_inner
self.run()
~~~~~~~~^^
File "/usr/local/lib/python3.13/threading.py", line 992, in run
self._target(*self._args, **self._kwargs)
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/RFXtrx/__init__.py", line 1046, in _connect
self._connect_internal()
~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.13/site-packages/RFXtrx/__init__.py", line 1074, in _connect_internal
event = self.transport.receive_blocking()
File "/usr/local/lib/python3.13/site-packages/RFXtrx/__init__.py", line 807, in __errors
return func(instance, *args, **kargs)
File "/usr/local/lib/python3.13/site-packages/RFXtrx/__init__.py", line 845, in receive_blocking
return self._receive_packet()
~~~~~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.13/site-packages/RFXtrx/__init__.py", line 849, in _receive_packet
data = self.serial.read()
File "/usr/local/lib/python3.13/site-packages/serial/serialposix.py", line 575, in read
buf = os.read(self.fd, size - len(read))
TypeError: 'NoneType' object cannot be interpreted as an integer
[20:29:18] INFO: Home Assistant Core finish process exit code 0
[20:29:18] INFO: Home Assistant Core service shutdown
However the integration appears to still work correctly: I get data from my temp+humidity sensor (which is the only thing left on 433 MHz, I have otherwise switched to zigbee).
I don't know when this started, I only recently set up proper monitoring of docker logs using Grafana Loki. I'm pretty sure this didn't happen a year ago or so though. But that is a huge span.
What version of Home Assistant Core has the issue?
core-2025.1.2
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Container
Integration causing the issue
RFXCom rfxtrx
Link to integration documentation on our website
https://www.home-assistant.io/integrations/rfxtrx
Diagnostics information
I enabled debug logging, restarted the container and then disabled debug logging. I can't see anything out of the ordinary here.
home-assistant_rfxtrx_2025-01-23T19-31-02.091Z.log
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
No response