core/homeassistant/components/matter/util.py