1 cask "home-assistant" do
2 version "2024.9.5,2024.986"
3 sha256 "45a50a58f56407c82361468ab04d6f1178542610cf2dc7aa3559bfe088de13db"
5 url "https://github.com/home-assistant/iOS/releases/download/release%2F#{version.csv.first}%2F#{version.csv.second}/home-assistant-mac.zip",
6 verified: "github.com/home-assistant/iOS/"
8 desc "Companion app for Home Assistant home automation software"
9 homepage "https://companion.home-assistant.io/"
13 regex(%r{^(?:mac|release)/(\d+(?:\.\d+)+)/(\d+(?:\.\d+)*)}i)
14 strategy :github_latest do |json, regex|
15 json["tag_name"]&.scan(regex)&.map { |match| "#{match[0]},#{match[1]}" }
19 depends_on macos: ">= :catalina"
21 app "Home Assistant.app"
24 "~/Library/Application Scripts/io.robbie.HomeAssistant",
25 "~/Library/Containers/io.robbie.HomeAssistant",
26 "~/Library/Group Containers/group.io.robbie.homeassistant",