hassio-addons/addon-appdaemon3

!secret no longer works in apps.yaml

nickneos opened this issue ยท 6 comments

Problem/Motivation

having !secret in apps.yaml no longer works

Expected behavior

!secret is parsed in apps.yaml as was the case prior to last release

Actual behavior

2019-04-02 22:19:17.599568 INFO API is disabled
2019-04-02 22:19:17.629602 INFO AppDaemon: HASS: Connected to Home Assistant 0.90.2
2019-04-02 22:19:18.014390 INFO AppDaemon: Got initial state from namespace default
2019-04-02 22:19:22.822573 INFO AppDaemon: Reading config
2019-04-02 22:19:23.217004 WARNING AppDaemon: Error loading configuration
2019-04-02 22:19:23.217780 WARNING AppDaemon: parser says
2019-04-02 22:19:23.218490 WARNING AppDaemon:   in "<unicode string>", line 79, column 15:
          gw_mac: !secret xiaomi_mac
                  ^
2019-04-02 22:19:23.218930 WARNING AppDaemon: could not determine a constructor for the tag '!secret'
2019-04-02 22:19:23.220558 WARNING AppDaemon: File '/config/appdaemon/apps/apps.yaml' invalid structure - ignoring

Steps to reproduce

have a !secret reference in apps.yaml

Proposed changes

๐Ÿ‘‹ Thanks for opening your first issue here! If you're reporting a ๐Ÿ› bug, please make sure you include steps to reproduce it. Also, logs, error messages and information about your hardware might be usefull.

Perhaps it is related to this issue?
AppDaemon/appdaemon#538 (comment)

This add-on does only install AppDaemon:

https://github.com/hassio-addons/addon-appdaemon3/blob/master/appdaemon/requirements.txt

Dependencies of AppDaemon are not locked in by the add-on, but are defined in:

https://github.com/home-assistant/appdaemon/blob/dev/setup.py#L18

Since AppDaemon does not lock in a version, the latest PyYaml gets installed, which is apparently broken.

Sorry, but there is nothing I can do. As soon as AppDaemon releases a working version (by doing proper version pinning), I'll release an update as soon as possible.

GitHub
AppDaemon3 - Community Hass.io Add-on for Home Assistant - hassio-addons/addon-appdaemon3
GitHub
๐Ÿ“„ Python Apps for Home Automation. Contribute to home-assistant/appdaemon development by creating an account on GitHub.

no worries...thanks

v2.0.2 of the add-on has just been released, which upgrades AppDaemon to v3.0.3, which addresses the secrets issue.

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.