Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Latest state as sensor property (#235)
Add sensor method to obtain just its latest state (excl. forecasts), and also move the latest state query for the old data model into the Asset class. * Create draft PR for #78 * Upgrade timely-beliefs dependency * Add latest state property to Sensor class * Move latest Power state query from util function to Asset class * Enrich the latest_state with more options * Revert "Enrich the latest_state with more options" to keep it simple. If a developer needs more functionality, they can just use search_beliefs instead. This reverts commit 1d911a2dbbe2eaf8729f9ea64f6444f5881b026a. * Remove small redundancy * Refactor query window conversion for demo mode * Announce deprecation of most_recent_only argument in favour of most_recent_beliefs_only * Fix passing through arguments (from review comment) * Stop using to-be-deprecated argument * Add option to filter by source * Changelog entry Co-authored-by: Flix6x <Flix6x@users.noreply.github.com> Co-authored-by: F.N. Claessen <felix@seita.nl>
- Loading branch information
1 parent
0db7979
commit e89f11f
Showing
8 changed files
with
85 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters