Skip to content

[DEV]  #36

@Tommatheussen

Description

@Tommatheussen

I wanted to take a look at getting the following issues fixed:

I think I found the problem why these are happening, I see this card is requesting energy data with the start date offset by 1 hour (at least for me): "start_time":"2024-02-18T22:00:00.000Z", compared to the stock date picker (which sends"start_time":"2024-02-18T23:00:00.000Z". I suspect that is why the stock cards don't properly render, as they receive data from overlapping days/timeperiods?

When looking at where and how the data gets loaded, I see in https://github.com/flixlix/energy-period-selector-plus/blob/main/src/energy/index.ts that a lot of the functions are duplicated or reimplemented. Is there a reason why we can't import these helper functions from HA itself?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions