Delete old/abandoned refresh tokens from user profiles

Sorry if the formatting has been lost -

installed the TokenRemover addon ok running -

Home Assistant 2023.6.1
Supervisor 2023.06.1
Operating System 10.2
Frontend 20230608.0 - latest

However When it runs I get the following error in the log

Next run is at 2023-06-10 03:00:00
 
Run time: 2023-06-10 03:00:00
Traceback (most recent call last):
  File "//run.py", line 111, in <module>
    result = tokenremover(sys.argv[2], sys.argv[3])
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "//run.py", line 72, in tokenremover
    yr, mnth, d, hr, mnt, scnd = date_str[:date_str.index(".")].translate(date_str.maketrans("T:.", "---")).split("-")
                                           ^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'index'

Any suggestions as to how to address this - not really sure where to start,
thanks in advance for any ideas

There is a github issue for this useless token pile up:

1 Like

Joining the party late, but if you want to do this for you own user, just change your password, all tokens will be deleted and you are good to generate a new pile up of tokens.