Home Assistant Unofficial Reference
2024.12.1
config_flow.py
Go to the documentation of this file.
1
"""Config flow for nVent RAYCHEM SENZ."""
2
3
import
logging
4
5
from
homeassistant.helpers
import
config_entry_oauth2_flow
6
7
from
.const
import
DOMAIN
8
9
10
class
OAuth2FlowHandler
(
11
config_entry_oauth2_flow.AbstractOAuth2FlowHandler, domain=DOMAIN
12
):
13
"""Config flow to handle SENZ OAuth2 authentication."""
14
15
DOMAIN = DOMAIN
16
17
@property
18
def
logger
(self) -> logging.Logger:
19
"""Return logger."""
20
return
logging.getLogger(__name__)
21
22
@property
23
def
extra_authorize_data
(self) -> dict:
24
"""Extra data that needs to be appended to the authorize url."""
25
return
{
"scope"
:
"restapi offline_access"
}
homeassistant.components.senz.config_flow.OAuth2FlowHandler
Definition:
config_flow.py:12
homeassistant.components.senz.config_flow.OAuth2FlowHandler.extra_authorize_data
dict extra_authorize_data(self)
Definition:
config_flow.py:23
homeassistant.components.senz.config_flow.OAuth2FlowHandler.logger
logging.Logger logger(self)
Definition:
config_flow.py:18
homeassistant.helpers
Definition:
__init__.py:1
core
homeassistant
components
senz
config_flow.py
Generated by
1.9.1