widewing / ha-toyota-na

Home Assistant integration for Toyota Motor (North America) connected services
75 stars 17 forks source link

Integration will fail on 2023.3 #53

Closed danepowell closed 1 year ago

danepowell commented 1 year ago

Been seeing this in my logs recently:

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 toyota_na using this method at custom_components/toyota_na/init.py, line 57: hass.config_entries.async_setup_platforms(entry, PLATFORMS)

ACiDGRiM commented 1 year ago

This is devastating

tacerra commented 1 year ago

It's an easy fix, just change

this (line 57 in /config/custom_components/toyota_na/init.py) hass.config_entries.async_setup_platforms(entry, PLATFORMS)

to await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)

widewing commented 1 year ago

Thanks! Fixed in v2.1.3.