mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 04:07:08 +00:00
Fitbit flake8 and pylint fixes. Forgot to do it before pushing :(
This commit is contained in:
parent
c8cbc528eb
commit
a7292af3b1
@ -153,7 +153,8 @@ def request_app_setup(hass, config, add_devices, config_path,
|
|||||||
else:
|
else:
|
||||||
setup_platform(hass, config, add_devices, discovery_info)
|
setup_platform(hass, config, add_devices, discovery_info)
|
||||||
|
|
||||||
start_url = "{}{}".format(hass.config.api.base_url, FITBIT_AUTH_CALLBACK_PATH)
|
start_url = "{}{}".format(hass.config.api.base_url,
|
||||||
|
FITBIT_AUTH_CALLBACK_PATH)
|
||||||
|
|
||||||
description = """Please create a Fitbit developer app at
|
description = """Please create a Fitbit developer app at
|
||||||
https://dev.fitbit.com/apps/new.
|
https://dev.fitbit.com/apps/new.
|
||||||
@ -301,7 +302,8 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
|
|||||||
|
|
||||||
setup_platform(hass, config, add_devices, discovery_info=None)
|
setup_platform(hass, config, add_devices, discovery_info=None)
|
||||||
|
|
||||||
hass.http.register_path("GET", FITBIT_AUTH_START, _start_fitbit_auth, require_auth=False)
|
hass.http.register_path("GET", FITBIT_AUTH_START, _start_fitbit_auth,
|
||||||
|
require_auth=False)
|
||||||
hass.http.register_path("GET", FITBIT_AUTH_CALLBACK_PATH,
|
hass.http.register_path("GET", FITBIT_AUTH_CALLBACK_PATH,
|
||||||
_finish_fitbit_auth, require_auth=False)
|
_finish_fitbit_auth, require_auth=False)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user