API breakage in version 2022.36 (it does not seem to include charge_to_max_range anymore)
See original GitHub issueVersion of the custom_component
2.4.3
Describe the bug
API breakage in version 2022.36, it does not seem to include charge_to_max_range anymore
This causes crash that also causes other entries becoming unavailable
I have created a patch for this on teslajsonpy that fixes this issue, see https://github.com/zabuldon/teslajsonpy/pull/351
Debug log
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 151, in _handle_refresh_interval
await self._async_refresh(log_failures=True, scheduled=True)
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 283, in _async_refresh
self.async_update_listeners()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 110, in async_update_listeners
update_callback()
File "/config/custom_components/tesla_custom/tesla_device.py", line 129, in refresh
self.tesla_device.refresh()
File "/usr/local/lib/python3.10/site-packages/teslajsonpy/homeassistant/charger.py", line 121, in refresh
self.__maxrange_state = data["charge_to_max_range"]
KeyError: 'charge_to_max_range'
Issue Analytics
- State:
- Created a year ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
Tesla 2022.36 Software Updates and Release Notes
Tesla 2022.36 software release including Autopilot Disengagement at Motorway Merges, Battery Health, Battery Heating Performance, Bugs Introduced in release ...
Read more >2022.36.1 Official Tesla Release Notes - Software Updates
Tesla software update 2022.36.1 includes Cabin Overheat Protection, Energy App, ... This is an early look at this update's release notes.
Read more >Tesla Software Update 2022.36.6 Features to ... - YouTube
Tesla Software Update 2022.36.6: I will be reviewing all the documented and undocumented features in the latest Tesla Software release.
Read more >Tesla Update 2022.36.2 | LOTS To Unpack!!! | - YouTube
We talked about it coming soon and its finally here! Lets take a live look in at one of the bigger updates recently!Buy...
Read more >Tesla Software Update 2022.36.2 Brings Advanced ... - YouTube
Ordering Tesla Solar? Use one of my Patron's referral codes and get $500!Enigma: https://ts.la/kamil4478Me: https://ts.la/chris41676My ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes, thank you all.
I’d also had the same issue and this has resolved it for me. Thanks all.