🔨 Re-branding

This commit is contained in:
Franck Nijhof 2020-02-12 21:52:45 +01:00
parent ff3b9b9be5
commit 1cf48a86ce
No known key found for this signature in database
GPG key ID: D62583BA8AB11CA3
7 changed files with 13 additions and 13 deletions

View file

@ -1,6 +1,6 @@
---
repository:
description: "AppDaemon3 - Community Home Assistant Add-ons"
description: "AppDaemon3 - Home Assistant Community Add-ons"
homepage: https://addons.community
topics: dashboard, appdaemon, python, ssh-server, addon, addons, home-assistant, homeassistant
private: false

View file

@ -1,4 +1,4 @@
# Community Home Assistant Add-on: AppDaemon 3
# Home Assistant Community Add-on: AppDaemon 3
[![GitHub Release][releases-shield]][releases]
![Project Stage][project-stage-shield]
@ -160,7 +160,7 @@ Got questions?
You have several options to get them answered:
- The [Community Home Assistant Add-ons Discord chat server][discord] for add-on
- The [Home Assistant Community Add-ons Discord chat server][discord] for add-on
support and feature requests.
- The [Home Assistant Discord chat server][discord-ha] for general Home
Assistant discussions and questions.

View file

@ -1,4 +1,4 @@
# Community Home Assistant Add-on: AppDaemon 3
# Home Assistant Community Add-on: AppDaemon 3
[![Release][release-shield]][release] ![Project Stage][project-stage-shield] ![Project Maintenance][maintenance-shield]

View file

@ -1,6 +1,6 @@
#!/usr/bin/with-contenv bashio
# ==============================================================================
# Community Home Assistant Add-on: AppDaemon
# Home Assistant Community Add-on: AppDaemon
# Removes symlink to the compiled directory on shutdown
# ==============================================================================
rm -f /config/appdaemon/compiled \

View file

@ -1,6 +1,6 @@
#!/usr/bin/with-contenv bashio
# ==============================================================================
# Community Home Assistant Add-on: AppDaemon
# Home Assistant Community Add-on: AppDaemon
# Configures AppDaemon
# ==============================================================================
readonly CONFIG_FILE="/config/appdaemon/appdaemon.yaml"
@ -47,25 +47,25 @@ if bashio::config.false 'disable_auto_token'; then
yq delete --inplace "${CONFIG_FILE}" 'appdaemon.plugins.HASS.ha_key'
# Add token
if [[ "$(yq read ${CONFIG_FILE} 'appdaemon.plugins.HASS.ha_url')" = "http://hassio/homeassistant"
&& "$(yq read ${CONFIG_FILE} 'appdaemon.plugins.HASS.token')" != "${HASSIO_TOKEN}"
if [[ "$(yq read ${CONFIG_FILE} 'appdaemon.plugins.HASS.ha_url')" = "http://supervisor/core"
&& "$(yq read ${CONFIG_FILE} 'appdaemon.plugins.HASS.token')" != "${SUPERVISOR_TOKEN}"
&& "$(yq read ${CONFIG_FILE} 'appdaemon.plugins.HASS.token')" != '!secret '* ]];
then
bashio::log.info \
'Updating Hass.io API token in AppDaemon with the current one...'
yq write --inplace "${CONFIG_FILE}" \
'appdaemon.plugins.HASS.token' "${HASSIO_TOKEN}" \
'appdaemon.plugins.HASS.token' "${SUPERVISOR_TOKEN}" \
|| bashio::exit.nok 'Failed to set Hass.io API token into the AppDaemon config'
fi
fi
# Checks the currently used HA URL and warns if the Hass.io proxy isn't used
ha_url=$(yq read "${CONFIG_FILE}" 'appdaemon.plugins.HASS.ha_url')
if [[ "${ha_url}" != "http://hassio/homeassistant" ]]; then
if [[ "${ha_url}" != "http://supervisor/core" ]]; then
bashio::log.warning 'You are using an non-recommended Home Assistant URL!'
bashio::log.warning 'Setting the "ha_url" option in your AppDaemon config to'
bashio::log.warning '"http://hassio/homeassistant" is recommended!'
bashio::log.warning '"http://supervisor/core" is recommended!'
fi
# Symlinks the compiled directory into the users AppDaemon directory

View file

@ -1,6 +1,6 @@
#!/usr/bin/execlineb -S0
# ==============================================================================
# Community Home Assistant Add-on: AppDaemon
# Home Assistant Community Add-on: AppDaemon
# Take down the S6 supervision tree when AppDaemon fails
# ==============================================================================
if -n { s6-test $# -ne 0 }

View file

@ -1,6 +1,6 @@
#!/usr/bin/with-contenv bashio
# ==============================================================================
# Community Home Assistant Add-on: AppDaemon
# Home Assistant Community Add-on: AppDaemon
# Runs the AppDaemon
# ==============================================================================
declare log_level