Octopus Energy Integration Issue

Hi all, I have been using the Octopus energy integration for around a year now with no issues whatsoever. I have a home mini and have been using the sensors sensor.octopus_energy_electricity_{{METER_SERIAL_NUMBER}}{{MPAN_NUMBER}}current_accumulative_consumption
sensor.octopus_energy_electricity
{{METER_SERIAL_NUMBER}}
{{MPAN_NUMBER}}_current_consumption

for the energy dashboard. Also using the equivalent gas meter readings.

Out of the blue these sensors all became ‘unavailable’ along with all other sensors for the integration in relation to the two smart meters on my account.

I thought this may resolve itself but after a few days, still nothing so I tried removing and reinstalling the integration. Now however, the only entities set up are shown in the picture. (electricity meter shown)

I wondered if it was an issue with the home mini however, in the Octopus app I am still seeing minute by minute data which suggests to me that the home mini is still working as it should?

log:

Logger: custom_components.octopus_energy.coordinators.electricity_rates
Source: helpers/update_coordinator.py:392
integration: Octopus Energy (documentation, issues)
First occurred: 15:51:42 (18 occurrences)
Last logged: 16:08:47

Unexpected error fetching ELECTRICITY_RATES_1900244393217_23J0544698 data
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 392, in _async_refresh
    self.data = await self._async_update_data()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 293, in _async_update_data
    return await self.update_method()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/octopus_energy/coordinators/electricity_rates.py", line 275, in async_update_electricity_rates_data
    hass.data[DOMAIN][account_id][key] = await async_refresh_electricity_rates_data(
                                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<16 lines>...
    )
    ^
  File "/config/custom_components/octopus_energy/coordinators/electricity_rates.py", line 122, in async_refresh_electricity_rates_data
    new_rates = adjust_intelligent_rates(new_rates,
                                         dispatches_result.dispatches.planned,
                                         dispatches_result.dispatches.started,
                                         intelligent_rate_mode)
  File "/config/custom_components/octopus_energy/intelligent/__init__.py", line 159, in adjust_intelligent_rates
    off_peak_rate = min(rates, key = lambda x: x["value_inc_vat"])
ValueError: min() iterable argument is empty

Does anyone have any idea what my issue may be?

Did you ever resolve this? Mine has been exactly the same for several months now.

Have you gone into reconfigure, your API key may have changed.

Apologies, I should have linked to this after I resolved the issue

https://github.com/BottlecapDave/HomeAssistant-OctopusEnergy/issues/1427

It was a case of calling up octopus and explaining that I was somehow linked to a now non existent tariff.