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

Adjust Update Frequency for ComwattEnergySensor #3

Open
MateoGreil opened this issue Dec 1, 2023 · 1 comment
Open

Adjust Update Frequency for ComwattEnergySensor #3

MateoGreil opened this issue Dec 1, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@MateoGreil
Copy link
Owner

Description:

Currently, the ComwattEnergySensor is being updated every two minutes, which is not necessary since the data from the Comwatt API is only refreshed once per hour. To optimize resource usage and reduce unnecessary calls, it is recommended to adjust the update frequency to once per hour.

Suggested Solution:

Utilize the DataUpdateCoordinator to implement polling at an hourly interval, as suggested in the Home Assistant documentation here.

@MateoGreil
Copy link
Owner Author

It could be fixed when fixing this issue: #5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant