widewing / ha-toyota-na

Home Assistant integration for Toyota Motor (North America) connected services
75 stars 17 forks source link

fix(component): filter out vehicles without active remote subscription #13

Closed vanstinator closed 2 years ago

vanstinator commented 2 years ago

This should fix this https://github.com/DurgNomis-drol/mytoyota/issues/7#issuecomment-1006668046

From what I can tell the remoteSubscriptionStatus is what is required to utilize the endpoints we're hitting. So if a vehicle doesn't have an existing subscription we'll ignore it. The nice part about this is the user just needs to activate the vehicle and the next time HA update the integration (currently ~1 minute) it'll get sucked in without the user needing to restart.