Comments (5)
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.
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.
Oh, and I updated both - running 2021.8.8 and latest version of your component.
from ha-average.
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.
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)
- Average Sensor is Unavailable due to Get_Instance error in log. HOT 5
- Possible Service Call To Reset An Average? HOT 1
- Configuration items HOT 1
- Add Interval Option HOT 3
- Data from the current month only HOT 1
- Looks like HA 2022.10 is breaking this component again HOT 1
- Fix hasn't worked: Average sensor still records lot of unnecessary attribute in the recorder that fills up the database quite fast HOT 1
- Issue in 2022.10.x Temperature HOT 4
- Shut be updated!? HOT 4
- Multiple Entity calculation timeout
- Sensor fails if temperature unit is "f" vs "F" HOT 1
- How to avoid error on HA Startup when entity is not available? HOT 1
- convert_temperature issue/error HOT 5
- Set interval using GUI
- Posibility restrict use only last value from dedicated scanning period.
- Problem with propagation of temperature unit when averaging a statistics helper
- Frequency of sensor update HOT 3
- Hi, the integration seems to break in HA 23.3.1 HOT 11
- This integration will stop working with Home Assistant 2023.4 HOT 8
- can't get average temperature over a 1 day period of last week HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ha-average.