Doubledom45 / HA-2024.3-RFPLAYER

💥Test RFPLAYER EN HA 2024.3 Seulement pour TESTEUR ⛔
MIT License
0 stars 1 forks source link

Error setting up entry /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A55YOSN7-if00-port0 for rfplayer at startup with latest version #3

Open coutadeurf opened 3 months ago

coutadeurf commented 3 months ago

Hi,

I just updated to latest version and I now have an error each time I restart Home Assistant: Logger: homeassistant.config_entries Source: config_entries.py:504 First occurred: 5:11:27 PM (1 occurrences) Last logged: 5:11:27 PM Error setting up entry /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A55YOSN7-if00-port0 for rfplayer

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 504, in async_setup result = await component.async_setup_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/rfplayer/init.py", line 319, in async_setup_entry hass.data[DOMAIN][RFPLAYER_PROTOCOL].init_commands() File "/config/custom_components/rfplayer/rflib/rfpprotocol.py", line 61, in init_commands self.send_raw_packet("ZIA++HELLO. PING") File "/config/custom_components/rfplayer/rflib/rfpprotocol.py", line 96, in send_raw_packet self.transport.write(data) # type: ignore ^^^^^^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'write'

It was working fine with one of the previous version.

I deleted the integration and reinstalled it in HACS, and it worked until I restarted Home Asssistant.

I am using: Core 2024.3.3 Supervisor 2024.03.0 Operating System 12.1 Frontend 20240307.0

Thanks!