Skip to content

Expose more SenseableBase properties.

Compare
Choose a tag to compare
@kbickar kbickar released this 15 Aug 15:54
· 47 commits to stable since this release
12c194d

Refactored get_trend() to handle more than two keys from self._trend_data.

  • 'key' is now a keyword argument on get_trend() with a default of "consumption", no longer is set as a boolean inside the function.
  • Perform type check on data referenced by key, ensure type is ...
  • dict (for consumption/production)
  • float (for to/from_grid and net_production properties)
  • int (for production_pct).
  • Converted existing True/False parameters on self.get_trend() calls to explicit key names.

Added new properties exposing existing information already in self._trend_data for daily scale and above.

  • production_pct
  • net_production
  • from_grid
  • to_grid