Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

errors on HA 2024.12 #6

Open
uszol90 opened this issue Jan 3, 2025 · 0 comments
Open

errors on HA 2024.12 #6

uszol90 opened this issue Jan 3, 2025 · 0 comments

Comments

@uszol90
Copy link

uszol90 commented Jan 3, 2025

hello
can anyone recommend a solution to this problem?

Detected that custom integration 'nissan_leaf_obd_ble' sets option flow config_entry explicitly, which is deprecated at custom_components/nissan_leaf_obd_ble/config_flow.py, line 116: self.config_entry = config_entry. This will stop working in Home Assistant 2025.12, please create a bug report at https://github.com/pbutterworth/nissan-leaf-obd-ble/issues

`Error setting up entry KONNWEI for nissan_leaf_obd_ble
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 640, in __async_setup_with_context
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/nissan_leaf_obd_ble/__init__.py", line 45, in async_setup_entry
    coordinator = NissanLeafObdBleDataUpdateCoordinator(
        hass, address=address, api=api, options=entry.options
    )
  File "/config/custom_components/nissan_leaf_obd_ble/coordinator.py", line 50, in __init__
    self.options = options
    ^^^^^^^^^^^^
  File "/config/custom_components/nissan_leaf_obd_ble/coordinator.py", line 102, in options
    self._fast_poll_interval = options["fast_poll"]
                               ~~~~~~~^^^^^^^^^^^^^
KeyError: 'fast_poll'

Error setting up entry KONNWEI for nissan_leaf_obd_ble Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 640, in __async_setup_with_context result = await component.async_setup_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/nissan_leaf_obd_ble/__init__.py", line 51, in async_setup_entry await coordinator.async_config_entry_first_refresh() File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 306, in async_config_entry_first_refresh await self._async_refresh( log_failures=False, raise_on_auth_failed=True, raise_on_entry_error=True ) File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 379, in _async_refresh self.data = await self._async_update_data() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/nissan_leaf_obd_ble/coordinator.py", line 71, in _async_update_data new_data = await self.api.async_get_data() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/nissan_leaf_obd_ble/api.py", line 30, in async_get_data api = await OBD.create(self._ble_device, protocol="6") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/nissan_leaf_obd_ble/obd.py", line 75, in create await self.__connect( ^^^^^^^^^^^^^^^^^^^^^ protocol, check_voltage, start_low_power ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) # initialize by connecting and loading sensors ^ File "/config/custom_components/nissan_leaf_obd_ble/obd.py", line 83, in __connect self.interface = await ELM327.create( ^^^^^^^^^^^^^^^^^^^^ self.__device, protocol, self.timeout, check_voltage, start_low_power ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/config/custom_components/nissan_leaf_obd_ble/elm327.py", line 113, in create await self.__send(b"ATZ", delay=1) # wait 1 second for ELM to initialize ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/nissan_leaf_obd_ble/elm327.py", line 311, in __send r = await self.__read(end_marker=end_marker) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/nissan_leaf_obd_ble/elm327.py", line 355, in __read data = await self.__port.read(self.__port.in_waiting or 1) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/nissan_leaf_obd_ble/bleserial.py", line 137, in read await asyncio.sleep(0.01) File "/usr/local/lib/python3.13/asyncio/tasks.py", line 718, in sleep return await future ^^^^^^^^^^^^ asyncio.exceptions.CancelledError: Global task timeout

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant