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.

Thanks for the good effort but this is not reliable

See original GitHub issue

Describe the bug Every few days or restarts the integration stops pulling any data. Thanks very much to anybody involved in coding this integration but I feel I need to let others know that if they intend to use this for any long-term data analysis it’s simply not reliable.

I’ve had to delete the integration so many times and every time I do it takes a couple of hours to fill the database, leaving a lot of gaps in the dataset which means I cannot calculate usage and cost accurately. I am fully aware of it being “pre-release” and this is not a criticism only a warning to anyone hoping to get constant reliable supply of data from the sensor.

To Reproduce Steps to reproduce the behaviour:

  1. Install integration (I did via HACS)
  2. Restart HA, add integration from Integrations page
  3. After restarting HA or after a few days of running the sensors will become unavailable (I set up an automation to restart HA every day so this is either triggered by a few restarts or running time)

Expected behaviour I expect not to ever have to touch the integration again after adding initially and for it to continue pulling data and presenting to HA

Screenshots If applicable, add screenshots to help explain your problem.

Version What version of the integration and what version of Home Assistant are you running? Using the latest as of October 16th 2021

Debug log Enable debug logging by following the instructions here

Logger: homeassistant.components.sensor
Source: custom_components/hildebrandglow_dcc/sensor.py:36
Integration: Sensor (documentation, issues)
First occurred: 2:31:43 PM (1 occurrences)
Last logged: 2:31:43 PM

Error while setting up hildebrandglow_dcc platform for sensor
Traceback (most recent call last):
  File "/config/custom_components/hildebrandglow_dcc/sensor.py", line 33, in async_setup_entry
    resources = await hass.async_add_executor_job(glow.retrieve_resources)
  File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/hildebrandglow_dcc/glow.py", line 78, in retrieve_resources
    raise InvalidAuth
custom_components.hildebrandglow_dcc.glow.InvalidAuth

During handling of the above exception, another exception occurred:

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/hildebrandglow_dcc/sensor.py", line 36, in async_setup_entry
    await Glow.handle_failed_auth(config, hass)
TypeError: handle_failed_auth() missing 1 required positional argument: 'hass'

Additional context Add any other context about the problem here.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
user897943commented, Oct 16, 2021

Thanks, I deleted that integration, the custom integration from hacs and added yours, will test now, if it works I thank you very much in advance for your great effort!

On Sat, Oct 16, 2021, 11:08 PM Colin Robbins @.***> wrote:

I’ve made a pull request, but @HandyHat https://github.com/HandyHat has been offline for a while now, and not accepting pulls.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/HandyHat/ha-hildebrandglow-dcc/issues/43#issuecomment-945013803, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABM6JFJF7MHRTOUGZBLBW6LUHHZXHANCNFSM5GDU5EJQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

1reaction
natebashcommented, Oct 16, 2021

Hi, I’ve found the same issue today seems like it is caused because some auth tokens don’t renew this wizard has forked and hopefully solved the issue https://github.com/ColinRobbins/ha-hildebrandglow-dcc

Read more comments on GitHub >

github_iconTop Results From Across the Web

50 Perfect Messages To Show Appreciation For Good Work
Showing appreciation for good work is a powerful way to motivate your employees to stick around. Here are 50 messages to nail your...
Read more >
Ways To Say "Thank You for Your Efforts" in Your Workplace
Expressing gratitude through phrases, such as "thank you for your efforts," can increase your co-worker's motivation and productivity.
Read more >
100 Unique Ways to Say 'Thank You For Your Hard Work'
If you are thanking someone and simultaneously congratulating them, these options are great. 91. Congrats on your achievement! You've earned it. Thanks for...
Read more >
40 Ways to Say Thank You for Your Time and Effort
Here is a list of 40 ways to say thank you for your time and effort to show your appreciation for their hard...
Read more >
50 Ways to Authentically Say 'Thank You for Your Hard Work'
8. Your hard work has resulted in tangible, beneficial financial results for the company.
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