Completely stopped working
See original GitHub issueDescribe the bug
I’m not sure if this maybe an Octopus outage or what, but the integration currently isn’t loading at all for me, despite it working fine a few hours ago.
To Reproduce
Home Assistant Version
2022.12.1
Integration Version
4.7.1
Home Assistant Logs `This error originated from a custom integration.
Logger: homeassistant.config_entries Source: custom_components/octopus_energy/api_client.py:160 Integration: Octopus Energy (documentation, issues) First occurred: 17:54:11 (1 occurrences) Last logged: 17:54:11
Error setting up entry Octopus Energy for octopus_energy Traceback (most recent call last): File “/usr/src/homeassistant/homeassistant/config_entries.py”, line 372, in async_setup result = await component.async_setup_entry(hass, self) File “/config/custom_components/octopus_energy/init.py”, line 41, in async_setup_entry await async_setup_dependencies(hass, entry.data) File “/config/custom_components/octopus_energy/init.py”, line 95, in async_setup_dependencies account_info = await client.async_get_account(config[CONFIG_MAIN_ACCOUNT_ID]) File “/config/custom_components/octopus_energy/api_client.py”, line 152, in async_get_account “gas_meter_points”: list(map(lambda mp: { File “/config/custom_components/octopus_energy/api_client.py”, line 157, in <lambda> “agreements”: list(map(lambda a: { File “/config/custom_components/octopus_energy/api_client.py”, line 160, in <lambda> “tariff_code”: a[“tariff”][“tariffCode”] if “tariffCode” in a[“tariff”] else None, TypeError: argument of type ‘NoneType’ is not iterable `
Issue Analytics
- State:
- Created 9 months ago
- Comments:10 (2 by maintainers)
Top GitHub Comments
Interesting - my 502 issue might be separate then. Mine started working on its own at 7:30 this morning… Presumably after someone at Octopus finally spotted an issue on their end. My rates are back.
Glad to see this rectified itself. 500+ errors returned are on Octopus Energy’s side. I’ll see if I can improve the error messages to make this clearer.