Use KEY_HASS [h-z] (#112610)
This commit is contained in:
parent
714777e853
commit
8ca127df2a
31 changed files with 82 additions and 80 deletions
|
@ -14,7 +14,7 @@ import requests.exceptions
|
|||
import voluptuous as vol
|
||||
|
||||
from homeassistant.components import http
|
||||
from homeassistant.components.http.view import HomeAssistantView
|
||||
from homeassistant.components.http import KEY_HASS, HomeAssistantView
|
||||
from homeassistant.components.media_player import DOMAIN as MP_DOMAIN
|
||||
from homeassistant.config_entries import (
|
||||
SOURCE_INTEGRATION_DISCOVERY,
|
||||
|
@ -443,7 +443,7 @@ class PlexAuthorizationCallbackView(HomeAssistantView):
|
|||
|
||||
async def get(self, request):
|
||||
"""Receive authorization confirmation."""
|
||||
hass = request.app["hass"]
|
||||
hass = request.app[KEY_HASS]
|
||||
await hass.config_entries.flow.async_configure(
|
||||
flow_id=request.query["flow_id"], user_input=None
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue