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 after update to V 0.25

See original GitHub issue

Hello,

I got this error after updating to the last version of powercalc and restart HA :

Logger: homeassistant.setup
Source: custom_components/powercalc/power_profile/library.py:132
Integration: Powercalc (documentation, issues)
First occurred: 08:11:06 (1 occurrences)
Last logged: 08:11:06

Error during setup of component powercalc
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 235, in _async_setup_component
    result = await task
  File "/config/custom_components/powercalc/__init__.py", line 185, in async_setup
    await autodiscover_entities(config, domain_config, hass)
  File "/config/custom_components/powercalc/__init__.py", line 268, in autodiscover_entities
    power_profile = await get_power_profile(
  File "/config/custom_components/powercalc/power_profile/model_discovery.py", line 46, in get_power_profile
    profile = await libary.get_profile(
  File "/config/custom_components/powercalc/power_profile/library.py", line 82, in get_profile
    profiles = await self.get_profiles_by_manufacturer(model_info.manufacturer)
  File "/config/custom_components/powercalc/power_profile/library.py", line 119, in get_profiles_by_manufacturer
    await self._create_power_profile(
  File "/config/custom_components/powercalc/power_profile/library.py", line 132, in _create_power_profile
    with open(model_json_path) as file:
FileNotFoundError: [Errno 2] No such file or directory: '/config/custom_components/powercalc/power_profile/../data/aqara/model.json'

I’m on home assistant v 2022.8.6

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:2
  • Comments:16 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
bramstrokercommented, Aug 24, 2022

Nice, thanks for confirming. Will release v0.25.2 now.

2reactions
bramstrokercommented, Aug 24, 2022

@ralfbosz You have hit another bug in the same code which iterates the directory to check if a certain manufacturer/model exists. There seem to be an inconsistence in directory listing accross multiple OS’s (locally it’s working for me, but in Home Assistant OS it’s breaking). I will have another look tomorrow to fix it in the code.

Read more comments on GitHub >

github_iconTop Results From Across the Web

R - How to update xfun function to 0.25 - Stack Overflow
I am trying to install 'tidyverse' in Rstudio (version 1.4.1), yet when I install I get an error that says: 'xfun' >= 0.23...
Read more >
New 0.25 Update for BeamNG.drive - YouTube
Checking out the NEW Update for BeamNG.drive! New Car, New Missions and New Garage mode have been added. We also have some fun...
Read more >
Cannot compile //:gazelle when using version 0.25.0 #1217
After running update-repos , gazelle removed all my external dependencies from go_repository rules, for whatever reason, but running a normal ...
Read more >
New update of the mod (21.10.2020) - v 0.25 news - Mod DB
New game update: - Building the secondary economy of all factions is now available from rank 2 without additional conditions
Read more >
VMware ESXi 7.0 Update 2d Release Notes
What's New. ESXi 7.0 Update 2d delivers a fix for ESXi hosts failing with a purple diagnostic screen due to a PCPU preemption...
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