GithubHelp home page GithubHelp logo

Comments (5)

Limych avatar Limych commented on May 29, 2024

A new version of the component has now been released. Please update to the latest version of HA and the latest version of the component. Most likely, your bug will go away by itself.

from ha-average.

dzianiwonsacze avatar dzianiwonsacze commented on May 29, 2024

Sadly, it did not. Please have a look below:

Logger: homeassistant.helpers.entity
Source: components/recorder/util.py:57
First occurred: 4:16:31 PM (176 occurrences)
Last logged: 4:37:31 PM

Update for sensor.avkitchlux fails
Update for sensor.avbedlux fails
Update for sensor.avsoflux fails
Update for sensor.avlux fails
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 446, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 654, in async_device_update
raise exc
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/util/init.py", line 277, in wrapper
result = method(*args, **kwargs)
File "/config/custom_components/average/sensor.py", line 305, in update
self._update_state()
File "/config/custom_components/average/sensor.py", line 477, in _update_state
history_list = history.state_changes_during_period(
File "/usr/src/homeassistant/homeassistant/components/recorder/history.py", line 142, in state_changes_during_period
with session_scope(hass=hass) as session:
File "/usr/local/lib/python3.9/contextlib.py", line 117, in enter
return next(self.gen)
File "/usr/src/homeassistant/homeassistant/components/recorder/util.py", line 57, in session_scope
session = hass.data[DATA_INSTANCE].get_session()
TypeError: 'NoneType' object is not callable

from ha-average.

dzianiwonsacze avatar dzianiwonsacze commented on May 29, 2024

Oh, and I updated both - running 2021.8.8 and latest version of your component.

from ha-average.

dzianiwonsacze avatar dzianiwonsacze commented on May 29, 2024

Ok, found the reason for the sensor not working - my password for MariaDB contained a @ symbol, and caused issues with accessing the database. Average sensor is working fine now, sorry for false alarm.

from ha-average.

github-actions avatar github-actions commented on May 29, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

from ha-average.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.