Skip to content

Commit

Permalink
Actually listen for the homeassistant_started event
Browse files Browse the repository at this point in the history
  • Loading branch information
mdeweerd committed Dec 4, 2023
1 parent ebf6f4f commit ca9a277
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion addon_meterstoha/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ git clone --depth=1 "https://github.com/mdeweerd/MetersToHA.git" --no-checkout M
# shellcheck disable=SC2086,SC2090
git checkout $GIT_VERSION_STR

echo "MetersToHA Container version: $(bashio::addon.version).015 #$(md5sum "${MYDIR}run.sh")"
echo "MetersToHA Container version: $(bashio::addon.version).016 #$(md5sum "${MYDIR}run.sh")"
git show -s --pretty=format:"MetersToHA Python GIT version: %h on %ad%n"
)

Expand Down Expand Up @@ -94,6 +94,7 @@ done
# Execute meters_to_ha.py when homeassistant start to reload entity values.
event_matching="$event_matching""[[ \"\$1\" == \"homeassistant_started\" ]] && TARGET_OPT=\"-k --skip-download $startup_conf\"
"
events="$events homeassistant_started"

# TODO: Execute meters_to_ha.py when addon starts (special option to create: --restore-state)

Expand Down

0 comments on commit ca9a277

Please sign in to comment.