Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V4.4.0.dev5 #2359

Merged
merged 2 commits into from
Nov 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/validate_esphome.yml
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ jobs:
echo "Extracted Version: ${VERSION}"
echo "version=${VERSION}" >> $GITHUB_OUTPUT
echo "VERSION=${VERSION}" >> $GITHUB_ENV

- name: Debug Version Output
run: |
echo "Version from setup_dependencies: ${{ steps.extract_version.outputs.version }}"
Expand Down
17 changes: 9 additions & 8 deletions esphome/nspanel_esphome_core_hw_wifi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,20 +93,21 @@ script:
mode: restart
then:
- lambda: |-
set_variable_value->execute("api", (wifi_component->is_connected() and api_server->is_connected() and is_boot_complete()) ? 1 : 0);
const bool is_blueprint_connected = is_boot_step_completed(${BOOT_STEP_VERSIONING});
set_variable_value->execute("api",
(is_blueprint_connected and wifi_component->is_connected() and api_server->is_connected()) ? 1 : 0);
// Update Wi-Fi icon color
set_component_font_color->execute("home", "wifi_icon",
(wifi_component->is_connected() and api_server->is_connected() and is_boot_complete()) ?
(wifi_rssi->state > -70 ? 33808 : 64992) :
63488);
(is_blueprint_connected and wifi_component->is_connected() and api_server->is_connected()) ?
(wifi_rssi->state > -70 ? 33808 : 64992) : 63488);
// Update Wi-Fi icon
set_component_text->execute("home", "wifi_icon",
wifi_component->is_connected() ?
(api_server->is_connected() ?
((is_boot_complete()) ? "\uE5A8" : // mdi:wifi - All right!
"\uE7CF") : // mdi:home-assistant - Boot incomplete
"\uF256") : // mdi:api-off
"\uE5A9"); // mdi:wifi-off
(is_blueprint_connected ? "\uE5A8" : // mdi:wifi - All right!
"\uE7CF") : // mdi:home-assistant - Boot incomplete
"\uF256") : // mdi:api-off
"\uE5A9"); // mdi:wifi-off

- id: !extend stop_all
then:
Expand Down
Loading