Same behaviour can be observed when I press the device properties, then "Show API key" option. If that can retrieve the key, HA discovery works as well. If not (loading spinning for a long time), HA will be unable either.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
The problem
If I put the API: configuration into a package, the HAOS discovery will not be able to read the api key.
Which version of ESPHome has the issue?
2022.12.8
What type of installation are you using?
Home Assistant Add-on
Which version of Home Assistant has the issue?
2023.2.0
What platform are you using?
ESP8266
Board
Sonoff S20
Component causing the issue
api, packages
Example YAML snippet
Anything in the logs that might be useful for us?
No response
Additional information
Same behaviour can be observed when I press the device properties, then "Show API key" option. If that can retrieve the key, HA discovery works as well. If not (loading spinning for a long time), HA will be unable either.