CJNE / ha-porscheconnect

Porsche Connect custom component for Home Assistant
MIT License
29 stars 12 forks source link

Handle Missing Root Keys #41

Closed dipeshc closed 2 years ago

dipeshc commented 2 years ago

Updated getFromDict() to return None when root key being looked up is missing. Specifically, this change is needed for a 911 that does not support "chargingStatus".

dipeshc commented 2 years ago

@CJNE the linting checks are failing on code unrelated to this PR. Let me know how you would like to proceed here.

CJNE commented 2 years ago

Thanks @dipeshc

Yes linting is failing because i haven't finished the test suite yet, will try to work on that when i can.