Skip to content

Instantly share code, notes, and snippets.

alias: "Music: Keep-alive"
description: ""
trigger:
- platform: homeassistant
event: start
id: interval
- platform: homeassistant
event: shutdown
id: interval
- platform: time_pattern
import re
from pathlib import Path
from ahkunwrapped import Script
def main() -> None:
rw_xml_folder = Path(r'C:\Program Files (x86)\Steam\steamapps\common\RimWorld\Data')
stat_bases_re = re.compile(r'<\s*statBases(.*?)statBases', flags=re.DOTALL | re.IGNORECASE)
integer_defs_re = re.compile(r'<\s*(\w+)\s*>\s*-?\s*\d+\s*<')