Skip to content

No attribute issues post installation #99

Open
@JustGav

Description

@JustGav

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:

  1. Install OctopusAgile via HACS
  2. Edit configuration.yaml
octopusagile:
  region_code: "????"
  mpan: XXXXXX
  serial: XXXXXX
  auth: XXX
  startdate: "2022-10-24"
  gorate: 
  godayrate:
  gotimes:
  moneymakers:
  - switch.water_heater: null
  - climate.downstairs:
      params:
        temp: 25
sensor:
- platform: "octopusagile"
  1. See error
    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):

  • OS: Windows 10
  • Browser Chrome
  • Version 106.0.5249.119

Additional context
Home Assistant Version : 2022.10.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions