PowerShell_Scripts/HomeAssistant/Stop-HA_Addon.ps1

9 lines
248 B
PowerShell

[CmdletBinding(SupportsShouldProcess)]param(
[string[]]$AddOnSlug,
[switch]$NoPatternMatch
)
Get-HA_Addon 'Running' -AddOnSlug:$AddOnSlug -NoPatternMatch:$NoPatternMatch | ForEach-Object {
Invoke-HomeAssistantCli addons stop $_.slug
}