Home Assistant Unofficial Reference
2024.12.1
const.py
Go to the documentation of this file.
1
"""Constants for the auth module."""
2
3
from
datetime
import
timedelta
4
5
ACCESS_TOKEN_EXPIRATION =
timedelta
(minutes=30)
6
MFA_SESSION_EXPIRATION =
timedelta
(minutes=5)
7
REFRESH_TOKEN_EXPIRATION =
timedelta
(days=90).total_seconds()
8
9
GROUP_ID_ADMIN =
"system-admin"
10
GROUP_ID_USER =
"system-users"
11
GROUP_ID_READ_ONLY =
"system-read-only"
homeassistant.components.uptimerobot.const.timedelta
timedelta
Definition:
const.py:14
core
homeassistant
auth
const.py
Generated by
1.9.1