From c3d51bce9a348d8e01e507043225f9fbe0b13cd7 Mon Sep 17 00:00:00 2001 From: Chris Nussbaum Date: Wed, 29 Sep 2021 07:07:52 -0500 Subject: [PATCH] Couple of minor bug fixes (#29) --- devices/front_entry_lights_2.yaml | 2 +- devices/washing-machine.yaml | 2 +- scripts/compile_all_devices.ps1 | 9 +++------ 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/devices/front_entry_lights_2.yaml b/devices/front_entry_lights_2.yaml index ada363a..8977ca7 100644 --- a/devices/front_entry_lights_2.yaml +++ b/devices/front_entry_lights_2.yaml @@ -1,7 +1,7 @@ substitutions: device_id: front_entry_lights_2 device_name: Front Entry Lights 2 - ip_address: !secret front-entry-lights_2-ip + ip_address: !secret front-entry-lights-2-ip ota_pwd: !secret front-entry-lights-2-ota-pwd api_pwd: !secret front-entry-lights-2-api-pwd ap_wifi_pwd: !secret front-entry-lights-2-ap-pwd diff --git a/devices/washing-machine.yaml b/devices/washing-machine.yaml index 7bad4d2..6407b2e 100644 --- a/devices/washing-machine.yaml +++ b/devices/washing-machine.yaml @@ -4,7 +4,7 @@ substitutions: ip_address: !secret washing-machine-ip ota_pwd: !secret washing-machine-ota-pwd api_pwd: !secret washing-machine-api-pwd - ap_wifi_pwd: !secret washing-machine-ap-wifi-pwd + ap_wifi_pwd: !secret washing-machine-ap-pwd packages: feit_dimmer: !include ../packages/topgreener_smart_plug.yaml diff --git a/scripts/compile_all_devices.ps1 b/scripts/compile_all_devices.ps1 index c6dd980..9233d26 100644 --- a/scripts/compile_all_devices.ps1 +++ b/scripts/compile_all_devices.ps1 @@ -1,9 +1,8 @@ -Push-Location $PSScriptRoot\..\devices - -$files = Get-ChildItem "*.yaml" -Exclude "secrets.yaml" +$files = Get-ChildItem $PSScriptRoot\..\devices\*.yaml -Exclude "secrets.yaml" $failures = New-Object Collections.Generic.List[String] foreach ($file in $files) { - esphome compile $file.Name + $fileName = $file.Name + esphome compile $PSScriptRoot\..\devices\$fileName if ($LASTEXITCODE -ne "0") { $failures.Add($file.Name) } @@ -18,5 +17,3 @@ else { Write-Output $failure } } - -Pop-Location \ No newline at end of file