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

Resolve Hour Offset Issue in ComwattEnergySensor #5

Open
MateoGreil opened this issue Dec 1, 2023 · 2 comments
Open

Resolve Hour Offset Issue in ComwattEnergySensor #5

MateoGreil opened this issue Dec 1, 2023 · 2 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@MateoGreil
Copy link
Owner

Description

Currently, the ComwattEnergySensor is updated with the current date, but the data retrieved from the API corresponds to the previous hour. This results in a one-hour offset in Home Assistant.

Issue Details

Problem Description: The current implementation causes a time misalignment between the sensor update time and the actual data retrieved from the API.

Suggested Solution: To address this issue and ensure accurate time synchronization, it is recommended to utilize the DataUpdateCoordinator as described in the Home Assistant documentation here.

@MateoGreil MateoGreil added the bug Something isn't working label Dec 1, 2023
@MateoGreil
Copy link
Owner Author

It could be fixed when fixing this issue : #3

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

No branches or pull requests

1 participant