G-Two / subarulink

A python package for interacting with Subaru STARLINK remote vehicle services.
Apache License 2.0
82 stars 14 forks source link

Unexpanded String In status Returned JSON #55

Closed ifyouwouldplease closed 1 year ago

ifyouwouldplease commented 2 years ago

I'm getting the name of the underlying asyncio object inline in the JSON returned by subarulink status , rather than the string value of the lock state:

 'last_update_time': 0,
 'lock': <asyncio.locks.Lock object at 0x7f5a1d63df40 [unlocked]>,
 'modelName': 'Crosstrek',
 'modelYear': '2022',

I did pull a location shortly before this if that's informative.

Thanks again for the quick response on issue #53.

G-Two commented 2 years ago

Thanks for reporting. Since that lock is only used for the controller's internal deconfliction, I just pulled it out of the dict that is presented to the user. See 36cf527 for the change which will be incorporated into the next release.

G-Two commented 1 year ago

Fixed in #61