question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"Error while setting up powercalc platform for sensor" after upgrade to v0.14

See original GitHub issue

Got these two errors in the log file after upgrade

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 "/config/custom_components/powercalc/sensor.py", line 207, in async_setup_platform
    entities = await create_sensors(hass, config, discovery_info)
  File "/config/custom_components/powercalc/sensor.py", line 283, in create_sensors
    (
ValueError: not enough values to unpack (expected 2, got 0)

and

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 "/config/custom_components/powercalc/sensor.py", line 207, in async_setup_platform
    entities = await create_sensors(hass, config, discovery_info)
  File "/config/custom_components/powercalc/sensor.py", line 256, in create_sensors
    return result[0]
IndexError: list index out of range

Not sure what additional information you’d like to see ?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
bramstrokercommented, Jan 5, 2022

Thanks for reporting and testing. Just released v0.14.1. Closing this issue. Have a nice day.

1reaction
SteffanHcommented, Jan 5, 2022

For any other newbies (like me): it took me a while to figure out that the “Redownload” option allows to you select the version 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

Powercalc - Virtual power sensors - #136 by QbaF
In the last few weeks I have been working on a custom component to get virtual power sensors for your lights or other...
Read more >
homeassistant-powercalc/README.md at master - GitHub
Use real power sensor. Available from v0.14 and higher. In the yaml configuration (functionality not available through the webUI) you can add the...
Read more >
Migrating Terraform versions - IBM Cloud Docs
14 upgrade, you must run the terraform apply with Terraform v0.13 to complete its state format upgrades. If you get any errors, see...
Read more >
Upgrading to Terraform 0.14 Experience -WARNING! - ITNEXT
In this blog entry, I go over the changes to the provider configuration, sensitive outputs (which is great but has a blocking bug),...
Read more >
PowerCalc Issues : r/homeassistant - Reddit
I've been trying to figure out the powercalc integration for a few days and it seems to update, drop, and add different sensors...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found