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( controller = TeslaAPI(
websession, websession,
refresh_token=config[CONF_TOKEN], refresh_token=config[CONF_TOKEN],
access_token=config[CONF_ACCESS_TOKEN],
update_interval=config_entry.options.get(CONF_SCAN_INTERVAL, 300), update_interval=config_entry.options.get(CONF_SCAN_INTERVAL, 300),
) )
(refresh_token, access_token) = await controller.connect() (refresh_token, access_token) = await controller.connect()

View File

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

View File

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

View File

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