Fix unnecessary regeneration of access token in Tesla component (#31193)

* Fix unnecessary regeneration of access token

* Add manifest.json
This commit is contained in:
Alan Tse 2020-01-27 02:30:35 -08:00 committed by Martin Hjelmare
parent 050e4afdc0
commit 4f07ccd350
4 changed files with 4 additions and 3 deletions

View File

@ -118,6 +118,7 @@ async def async_setup_entry(hass, config_entry):
controller = TeslaAPI(
websession,
refresh_token=config[CONF_TOKEN],
access_token=config[CONF_ACCESS_TOKEN],
update_interval=config_entry.options.get(CONF_SCAN_INTERVAL, 300),
)
(refresh_token, access_token) = await controller.connect()

View File

@ -3,7 +3,7 @@
"name": "Tesla",
"config_flow": true,
"documentation": "https://www.home-assistant.io/integrations/tesla",
"requirements": ["teslajsonpy==0.2.3"],
"requirements": ["teslajsonpy==0.3.0"],
"dependencies": [],
"codeowners": ["@zabuldon", "@alandtse"]
}

View File

@ -1954,7 +1954,7 @@ temperusb==1.5.3
# tensorflow==1.13.2
# homeassistant.components.tesla
teslajsonpy==0.2.3
teslajsonpy==0.3.0
# homeassistant.components.thermoworks_smoke
thermoworks_smoke==0.1.8

View File

@ -631,7 +631,7 @@ sunwatcher==0.2.1
tellduslive==0.10.10
# homeassistant.components.tesla
teslajsonpy==0.2.3
teslajsonpy==0.3.0
# homeassistant.components.toon
toonapilib==3.2.4