JaccoR / hass-entso-e

Integration for Home Assistant to fetch day ahead energy prices from European countries via ENTSO-e Transparency Platform
Apache License 2.0
173 stars 28 forks source link

introduce correct device class for timestamp, set correct timestamp format and introduce state restore functionality #95

Closed sfstar closed 1 year ago

sfstar commented 1 year ago

This PR introduces the restore state functionality (see) for the entsoe integrations entities. This was discussed in #86 and mentioned in #94

It is also forced to fix #93 and #64 since otherwise the data restored would be the string representation of the PD timestamp class. Which is currently unusable for automating whithin homeassistant. This PR has been tested locally (by triggering entsoe errors and waiting for updates). Furthermore, this PR was also tested by updating a live instance which went without any issues.

fixes #93, fixes #94, fixes #64, fixes #86

JaccoR commented 1 year ago

Thanks a lot @sfstar! Will merge and test on main for a day or so and then make a new release.