PowerShell_Scripts/HomeAssistant/Get-HAPath.ps1

10 lines
365 B
PowerShell
Raw Normal View History

@(
$(
@($HAConfigPath,'/srv/ha/current/homeassistant','/usr/share/hassio/homeassistant') |
Where-Object { $_ } |
Where-Object { Test-Path -Type Container $_ } |
Select-Object -First 1
), $HAConfigPath, '/srv/ha/current/homeassistant'
) | Where-Object { $_ } |
Select-Object -First 1 -OutVariable HAConfigPath