esphome / issues

Issue Tracker for ESPHome
https://esphome.io/
290 stars 36 forks source link

ESPHome device discovery for HAOS Addon not working with packages #4111

Open ipetrovits opened 1 year ago

ipetrovits commented 1 year ago

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

Config.yaml content:

packages:
  api: !include .packages/api.yaml

.packages/api.yaml content:

api:
  encryption:
    key: !secret api_key

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.

github-actions[bot] commented 1 year ago

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.