core/homeassistant/components/nuki/helpers.py