mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Remove code in wink.py overwriting hass.data configurator (#8595)
This commit is contained in:
parent
7edf14e55f
commit
8e8ec7a7c3
@ -103,7 +103,7 @@ def _read_config_file(file_path):
|
|||||||
|
|
||||||
def _request_app_setup(hass, config):
|
def _request_app_setup(hass, config):
|
||||||
"""Assist user with configuring the Wink dev application."""
|
"""Assist user with configuring the Wink dev application."""
|
||||||
hass.data['configurator'] = True
|
hass.data[DOMAIN]['configurator'] = True
|
||||||
configurator = get_component('configurator')
|
configurator = get_component('configurator')
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
# pylint: disable=unused-argument
|
||||||
@ -151,7 +151,7 @@ def _request_app_setup(hass, config):
|
|||||||
|
|
||||||
def _request_oauth_completion(hass, config):
|
def _request_oauth_completion(hass, config):
|
||||||
"""Request user complete Wink OAuth2 flow."""
|
"""Request user complete Wink OAuth2 flow."""
|
||||||
hass.data['configurator'] = True
|
hass.data[DOMAIN]['configurator'] = True
|
||||||
configurator = get_component('configurator')
|
configurator = get_component('configurator')
|
||||||
if DOMAIN in hass.data[DOMAIN]['configuring']:
|
if DOMAIN in hass.data[DOMAIN]['configuring']:
|
||||||
configurator.notify_errors(
|
configurator.notify_errors(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user