2024-03-30 17:14:50.595 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Awattar (at) for awattar_energy_cost
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 387, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/awattar_energy_cost/init.py", line 26, in async_setup_entry
hass.config_entries.async_setup_platforms(entry, PLATFORMS)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'ConfigEntries' object has no attribute 'async_setup_platforms'
2024-03-30 17:18:44.025 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Awattar (at) for awattar_energy_cost
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 387, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/awattar_energy_cost/init.py", line 24, in async_setup_entry
shell.add_entry(entry)
File "/config/custom_components/awattar_energy_cost/init.py", line 69, in add_entry
self._hass.add_job(source.fetch)
^^^^^^
UnboundLocalError: cannot access local variable 'source' where it is not associated with a value
2024-03-30 17:14:50.595 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Awattar (at) for awattar_energy_cost Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 387, in async_setup result = await component.async_setup_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/awattar_energy_cost/init.py", line 26, in async_setup_entry hass.config_entries.async_setup_platforms(entry, PLATFORMS) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'ConfigEntries' object has no attribute 'async_setup_platforms' 2024-03-30 17:18:44.025 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Awattar (at) for awattar_energy_cost Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 387, in async_setup result = await component.async_setup_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/awattar_energy_cost/init.py", line 24, in async_setup_entry shell.add_entry(entry) File "/config/custom_components/awattar_energy_cost/init.py", line 69, in add_entry self._hass.add_job(source.fetch) ^^^^^^ UnboundLocalError: cannot access local variable 'source' where it is not associated with a value