core/homeassistant/components/nightscout/utils.py