Update Notion auth to store refresh tokens instead of account passwords (#109670)

This commit is contained in:
Aaron Bach 2024-02-12 20:35:06 -07:00 committed by GitHub
parent 92c3c401b9
commit e3c838d512
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 142 additions and 47 deletions

View file

@ -4,6 +4,9 @@ import logging
DOMAIN = "notion"
LOGGER = logging.getLogger(__package__)
CONF_REFRESH_TOKEN = "refresh_token"
CONF_USER_UUID = "user_uuid"
SENSOR_BATTERY = "low_battery"
SENSOR_DOOR = "door"
SENSOR_GARAGE_DOOR = "garage_door"