Skip to content

Exception raised unsupported operand type(s) for +: 'NoneType' and 'list' #4111

Description

@nevski99

Updated to latest core version and now get errors in the log:

2026-06-22 15:27:03.543501: Error: Exception raised unsupported operand type(s) for +: 'NoneType' and 'list'
2026-06-22 15:27:03.548203: Error: Traceback (most recent call last):
File "/config/predbat.py", line 1661, in update_time_loop
self.update_pred(scheduled=False)
File "/config/predbat.py", line 1069, in update_pred
self.comparison.run_all()
File "/config/compare.py", line 561, in run_all
result_data = self.run_single(tariff, rate_import_base, rate_export_base, end_record, debug=debug, fetch_sensor=fetch_sensor, car_charging_slots=save_car_charging_slots, start_soc=start_soc)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/compare.py", line 313, in run_single
existing_tariff = self.fetch_rates(tariff, rate_import_base, rate_export_base)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/compare.py", line 100, in fetch_rates
pb.rate_import = pb.basic_rates(tariff["rates_import"], "rates_import")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/fetch.py", line 1608, in basic_rates
for this_rate in info + manual_items:
~~~~~^~~~~~~~~~~~~~
TypeError: unsupported operand type(s) for +: 'NoneType' and 'list'
2026-06-22 15:27:03.581501: Warn: record_status Error: Exception raised unsupported operand type(s) for +: 'NoneType' and 'list'
2026-06-22 15:27:03.581647: Error: timer_tick caught exception: unsupported operand type(s) for +: 'NoneType' and 'list'
Traceback (most recent call last):
File "/config/hass.py", line 279, in timer_tick
item"callback"
File "/config/predbat.py", line 1667, in update_time_loop
raise e
File "/config/predbat.py", line 1661, in update_time_loop
self.update_pred(scheduled=False)
File "/config/predbat.py", line 1069, in update_pred
self.comparison.run_all()
File "/config/compare.py", line 561, in run_all
result_data = self.run_single(tariff, rate_import_base, rate_export_base, end_record, debug=debug, fetch_sensor=fetch_sensor, car_charging_slots=save_car_charging_slots, start_soc=start_soc)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/compare.py", line 313, in run_single
existing_tariff = self.fetch_rates(tariff, rate_import_base, rate_export_base)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/compare.py", line 100, in fetch_rates
pb.rate_import = pb.basic_rates(tariff["rates_import"], "rates_import")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/fetch.py", line 1608, in basic_rates
for this_rate in info + manual_items:
~~~~~^~~~~~~~~~~~~~
TypeError: unsupported operand type(s) for +: 'NoneType' and 'list'

Predbat version v8.41.3
Add-on version: 1.7.1
System: Home Assistant OS 18.0 (aarch64 / raspberrypi5-64)
Home Assistant Core: 2026.6.4
Home Assistant Supervisor: 2026.06.2

Sigenergy 12kW inverter + 45kW batteries

predbat_debug.yaml.txt

apps.yaml.txt

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions