home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
70.83k stars 29.54k forks source link

OVO Energy Integration Error #61592

Closed Morodin8 closed 2 years ago

Morodin8 commented 2 years ago

The problem

I set up the OVO intregration, adding my username & password. All appear to work, but no enteties appears in Energy tab.

What version of Home Assistant Core has the issue?

core-2021.12.0

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

ovo_energy

Link to integration documentation on our website

https://www.home-assistant.io/integrations/ovo_energy/

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: homeassistant.components.sensor
Source: components/ovo_energy/sensor.py:130
Integration: Sensor (documentation, issues)
First occurred: 17:05:25 (3 occurrences)
Last logged: 17:16:09

Error while setting up ovo_energy platform for sensor
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform
    await asyncio.shield(task)
  File "/usr/src/homeassistant/homeassistant/components/ovo_energy/sensor.py", line 130, in async_setup_entry
    coordinator.data.electricity[-1].cost.currency_unit
AttributeError: 'NoneType' object has no attribute 'currency_unit'

Additional information

I have set up my currency as GBP, but also tried this with the default EUR currency.

probot-home-assistant[bot] commented 2 years ago

Hey there @timmo001, mind taking a look at this issue as it has been labeled with an integration (ovo_energy) you are listed as a code owner for? Thanks! (message by CodeOwnersMention)


ovo_energy documentation ovo_energy source (message by IssueLinks)

Morodin8 commented 2 years ago

):