question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

API breakage in version 2022.36 (it does not seem to include charge_to_max_range anymore)

See original GitHub issue

Version 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:closed
  • Created a year ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
anhaffcommented, Oct 11, 2022

Yes, thank you all.

1reaction
iancgcommented, Oct 11, 2022

Did this fix the issues @jaymunro and @anhaff?

I’d also had the same issue and this has resolved it for me. Thanks all.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found