gontxomde / ha-seconds-history-stats Goto Github PK
View Code? Open in Web Editor NEWCustom component to measure history stats in seconds
Custom component to measure history stats in seconds
Hi,
I updated HA to 2022.5.3 and history_stats_seconds threw the following error:
Logger: homeassistant.helpers.entity
Source: custom_components/history_stats_second/sensor.py:233
Integration: history_stats_second (documentation)
First occurred: 12:28:20 (26 occurrences)
Last logged: 12:33:51
Update for sensor.tv_time_on fails
Update for sensor.door_opened fails
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 515, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 743, in async_device_update
raise exc
File "/config/custom_components/history_stats_second/sensor.py", line 219, in async_update
await self.hass.async_add_executor_job(
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/history_stats_second/sensor.py", line 233, in _update
last_state = history.get_state(self.hass, start, self._entity_id)
AttributeError: module 'homeassistant.components.recorder.history' has no attribute 'get_state'
Could anyone give me an advice how to fix it ?
Thank you
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.