Skip to content

Commit

Permalink
OTBR: Abort firmware flasher if network device is selected. (#3719)
Browse files Browse the repository at this point in the history
* Abort firmware flashing if network device selected

* Bump release to 2.9.1

---------

Co-authored-by: Tim Lunn <[email protected]>
  • Loading branch information
tl-sl and darkxst authored Aug 8, 2024
1 parent 5c52add commit d6783f8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions openthread_border_router/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 2.9.1

- Abort firmware flasher if network device is selected

## 2.9.0

- Avoid triggering reset/boot loader on TI CC2652 based devices
Expand Down
2 changes: 1 addition & 1 deletion openthread_border_router/config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
version: 2.9.0
version: 2.9.1
slug: openthread_border_router
name: OpenThread Border Router
description: OpenThread Border Router add-on
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ if bashio::config.false 'autoflash_firmware'; then
exit 0
fi

if bashio::config.has_value 'network_device'; then
bashio::log.info "Network device is selected, skipping firmware flashing"
exit 0
fi

# Assume to run on Yellow if UART4 is mapped to ttyAMA1
if [ -d /sys/devices/platform/soc/fe201800.serial/tty/ttyAMA1 ] && [ "${device}" == "/dev/ttyAMA1" ]; then
bashio::log.info "Detected Home Assistant Yellow"
Expand Down

0 comments on commit d6783f8

Please sign in to comment.