crazymikefra / HA_RFPlayer

RFPlayer plugin for Home assistant
0 stars 0 forks source link

Init will fail with 2023.3 #3

Closed crazymikefra closed 1 year ago

crazymikefra commented 1 year ago
    il y a le platforms aussi qui va être modifier ?

WARNING (MainThread) [homeassistant.helpers.frame] Detected integration that called async_setup_platforms instead of awaiting async_forward_entry_setups; this will fail in version 2023.3. Please report issue to the custom integration author for rfplayer using this method at custom_components/rfplayer/init.py, line 267: hass.config_entries.async_setup_platforms(entry, PLATFORMS)

_Originally posted by @Doubledom45 in https://github.com/crazymikefra/HA_RFPlayerNext/discussions/3#discussioncomment-5115604_

Doubledom45 commented 1 year ago

Pour ce message il faut modifier dans custom_components/rfplayer/__init__.py image

##    hass.config_entries.async_setup_platforms(entry, PLATFORMS) # modif pour erreur HA this will fail in version 2023.3
    await hass.config_entries.async_forward_entry_setups (entry, PLATFORMS)

Normalement plus le message !

Ci-dessous un log, j'ai mis quelques lignes en log, pour avoir les infos voulues ...


1. 2023-03-05 11:41:22.414 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2. 2023-03-05 11:41:22.420 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration rfplayer which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
3. 2023-03-05 11:41:40.192 INFO (MainThread) [custom_components.rfplayer] Initiating Rfplayer connection
4. 2023-03-05 11:41:40.198 DEBUG (MainThread) [custom_components.rfplayer.rflib.rfpprotocol] PacketHandling
5. 2023-03-05 11:41:40.199 DEBUG (MainThread) [custom_components.rfplayer.rflib.rfpprotocol] EventHandling
6. 2023-03-05 11:41:40.201 INFO (MainThread) [custom_components.rfplayer] Connected to Rfplayer
7. 2023-03-05 11:41:40.257 DEBUG (MainThread) [custom_components.rfplayer.rflib.rfpprotocol] writing data: b'ZIA++HELLO\n\r'
8. 2023-03-05 11:41:40.259 DEBUG (MainThread) [custom_components.rfplayer.rflib.rfpprotocol] writing data: b'ZIA++FACTORYRESET\n\r'
9. 2023-03-05 11:41:40.260 DEBUG (MainThread) [custom_components.rfplayer.rflib.rfpprotocol] writing data: b'ZIA++RECEIVER + *\n\r'
10. 2023-03-05 11:41:40.260 DEBUG (MainThread) [custom_components.rfplayer.rflib.rfpprotocol] writing data: b'ZIA++FORMAT JSON\n\r'
11. 2023-03-05 11:41:40.261 DEBUG (MainThread) [custom_components.rfplayer.rflib.rfpprotocol] writing data: b'ZIA++STATUS\n\r'
12. 2023-03-05 11:41:40.262 WARNING (MainThread) [custom_components.rfplayer.switch] Switch entity not created EDISIO_1477804532cmd_cmd - {'id': 'EDISIO_1477804532cmd_cmd', 'command': 'SET_TEMPERATURE', 'value': 'SET_TEMPERATURE', 'unit': None, 'platform': 'sensor', 'protocol': 'EDISIO'}
13. 2023-03-05 11:41:40.286 WARNING (MainThread) [custom_components.rfplayer.switch] Switch entity not created EDISIO_3289809396cmd_cmd - {'id': 'EDISIO_3289809396cmd_cmd', 'command': 'SET_TEMPERATURE', 'value': 'SET_TEMPERATURE', 'unit': None, 'platform': 'sensor', 'protocol': 'EDISIO'}
14. 2023-03-05 11:41:40.290 WARNING (MainThread) [custom_components.rfplayer.switch] Switch entity not created EDISIO_3021627888cmd_cmd - {'id': 'EDISIO_3021627888cmd_cmd', 'command': 'SET_TEMPERATURE', 'value': 'SET_TEMPERATURE', 'unit': None, 'platform': 'sensor', 'protocol': 'EDISIO'}
15. 2023-03-05 11:41:40.293 WARNING (MainThread) [custom_components.rfplayer.switch] Switch entity not created EDISIO_189824697cmd_cmd - {'id': 'EDISIO_189824697cmd_cmd', 'command': 'SET_TEMPERATURE', 'value': 'SET_TEMPERATURE', 'unit': None, 'platform': 'sensor', 'protocol': 'EDISIO'}
16. 2023-03-05 11:41:40.332 DEBUG (MainThread) [custom_components.rfplayer.rflib.rfpprotocol] received data: 

home-assistant.log PS j'ai modifié les entités Température et hygrométrie pour avoir en entier plus-tôt que temp et hygr