-
Notifications
You must be signed in to change notification settings - Fork 32
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
No attribute issues post installation #99
Comments
|
My system was working and I've just updated to the latest HA ... I've just done a quick test by removing the octopusagile.json file and then restarting at which point I get a lot of these errors also. I believe the issue is to do with the fact that a lot of the info is read from this json file when the integration loads, meaning that until this file is generated you get loads of errors. |
are the issue I think. It only populates the sensor data on startup if that file exists. I'm thinking if the file doesn't exist calling update_timers would be a better idea than jus not doing anything. |
Describe the bug
Installed the plug in via HACS, configuration done in configuration YAML file. Component does not seem to start or retrieve data.
To Reproduce
Steps to reproduce the behavior:
Error setting up entry Name of the device for octopusagile Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 365, in async_setup result = await component.async_setup_entry(hass, self) AttributeError: module 'custom_components.octopusagile' has no attribute 'async_setup_entry'
Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 515, in async_update_ha_state await self.async_device_update() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 710, in async_device_update raise exc File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) File "/config/custom_components/octopusagile/sensor.py", line 159, in update current_rate = self.hass.states.get("octopusagile.all_rates").attributes.get(rounded_time_str) AttributeError: 'NoneType' object has no attribute 'attributes'
Expected behavior
Sensor data should be populated
Screenshots
Desktop (please complete the following information):
Additional context
Home Assistant Version : 2022.10.5
The text was updated successfully, but these errors were encountered: