Fix for deprecated getLiveSessionData by jjlawren · Pull Request #178 · bretterer/rivian-python-client
Conversation
Applying the suggested fixes discussed in bretterer/home-assistant-rivian#254. Tests also updated and passing.
Will require a fix in the HA custom component here by also replacing getLiveSessionData with getLiveSessionHistory.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
getLiveSessionData and getLiveSessionHistory are not compatible data models. As such, instead of remapping the underlying query for get_live_charging_session, it and the related tests should be renamed and validated appropriately.
Fair enough. This appeared to restore functionality of the HA integration in my limited testing, but I unfortunately wasn't able to set up a full validation environment yet. Please feel free to close if this is the wrong approach.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters