Skip to content

Instantly share code, notes, and snippets.

#!/home/joost/homeassistant/bin/python3
# This script will make sure that no entity in your openzwave config cache file has a duplicate name.
# It will also create a backup of the file.
import xml.etree.ElementTree as ET
import copy
import re
import time
from shutil import copyfile