Fix unnecessary regeneration of access token in Tesla component (#31193)
* Fix unnecessary regeneration of access token * Add manifest.json
This commit is contained in:
1 parent
050e4afdc0
commit
4f07ccd350
4 files changed
+4
-3
No files matched your search
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user