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

SmartShunt: When setting Aux Input to Starter Battery component stops working #103

Closed
bdolnik opened this issue Nov 4, 2023 · 2 comments

Comments

@bdolnik
Copy link

bdolnik commented Nov 4, 2023

Describe the bug

When enabling the Aux Input, and setting it to Starter Battery, the component stops working and starts throwing errors in the log. The error is shown below.

Debug log

2023-11-04 09:33:11.233 ERROR (MainThread) [custom_components.victron_ble] Unexpected error updating SmartShunt HQ2227UXHFM data: (<VictronSensor.STARTER_BATTERY_VOLTAGE: 'starter_battery_voltage'>, <Units.ELECTRIC_POTENTIAL_VOLT: 'V'>)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/bluetooth/passive_update_processor.py", line 585, in async_handle_update
new_data = self.update_method(update)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/victron_ble/sensor.py", line 151, in sensor_update_to_bluetooth_data_update
entity_descriptions={
^
File "/config/custom_components/victron_ble/sensor.py", line 154, in
): SENSOR_DESCRIPTIONS[
^^^^^^^^^^^^^^^^^^^^
KeyError: (, )

@heinzma
Copy link

heinzma commented Nov 5, 2023

#97 should fix it.

@bdolnik
Copy link
Author

bdolnik commented Nov 5, 2023

That worked for me, thank you very much.

@bdolnik bdolnik closed this as completed Nov 5, 2023
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

2 participants