Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple Entity calculation timeout #168

Open
matmal opened this issue Oct 19, 2022 · 0 comments
Open

Multiple Entity calculation timeout #168

matmal opened this issue Oct 19, 2022 · 0 comments
Labels
bug Something isn't working.

Comments

@matmal
Copy link

matmal commented Oct 19, 2022

Environment

  • Home Assistant Core release with the issue:2022.10.4
  • This custom component release with the issue: 2.3.0
  • Last working this custom component release (if known):
  • Operating environment (Home Assistant/Supervisor/Docker/venv): Docker

Describe the bug
If an average of 1+ entities (like temperature) is performed. Home assistant reports an error that calculation takes mor than 10 seconds. This puts a lot of stress on the cpu thus HA becomes unresponsive.

Configuration.yaml

  • platform: average
    name: "1D Avg Temp"
    duration:
    days: 1
    entities:
    • sensor.temperatura_1
    • sensor.temperatura_2
    • sensor.temperatura_3
    • sensor.temperatura_4

Steps to Reproduce
Use any changing values to reproduce this, does not have to be temperature

Expected behavior

Debug log

Additional context
2022-10-19 11:46:20.006 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.1d_avg_temp is taking over 10 seconds

@matmal matmal added the bug Something isn't working. label Oct 19, 2022
Limych pushed a commit that referenced this issue Feb 27, 2024
…codeql-action-3

Bump github/codeql-action from 2 to 3
Limych pushed a commit that referenced this issue Oct 6, 2024
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.4.8 to 0.4.9.
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)
- [Commits](astral-sh/ruff@v0.4.8...v0.4.9)

---
updated-dependencies:
- dependency-name: ruff
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working.
Projects
None yet
Development

No branches or pull requests

1 participant