It's kinda shitty that the attributes are searched in full for all domains. In addition, the config doesn't quite make sense because of this so I'd like to change the script to account for settings more like this:
{
"domains": [{
"light": ["state", "brightness", "color_temp", "xy_color", "rgb_color"],
"switch": ["state"]
}],
"save_file": true
}