Skip to content

v0.11.0

Choose a tag to compare

@github-actions github-actions released this 23 Jun 11:06
· 80 commits to v0.x.x since this release
v0.11.0
ce985a7

Frequenz Dispatch Client Library Release Notes

Summary

While the new TargetCategory class supports subtypes, only reading them is currently available; setting subtypes will be introduced in a future release.

Upgrading

  • TargetComponents was reworked. It now is a type alias for TargetIds | TargetCategories:
  • TargetIds can be used to specify one or more specific target IDs:
  • TargetIds(1, 2, 3) or
  • TargetIds(ComponentIds(1), ComponentIds(2), ComponentIds(3))
  • TargetCategories can be used to specify one or more target categories:
  • TargetCategories(ComponentCategory.BATTERY, ComponentCategory.INVERTER)
  • Dispatch ids and microgrid ids are no longer simple int types but are now wrapped in DispatchId and MicrogridId classes, respectively. This allows for better type safety and clarity in the codebase.

New Features

  • With the new TargetCategory class (providing .category and .type) we can now specify subtypes of the categories:
  • ComponentCategory.BATTERY uses BatteryType with possible values: LI_ION, NA_ION
  • ComponentCategory.INVERTER uses InverterType with possible values: BATTERY, SOLAR, HYBRID
  • ComponentCategory.EV_CHARGER uses EvChargerType: with possible values AC, DC, HYBRID
  • A few examples on how to use the new TargetCategory:
    • TargetCategory(BatteryType.LI_ION)
      • category is ComponentCategory.BATTERY
      • type is BatteryType.LI_ION
    • TargetCategory(ComponentCategory.BATTERY)
      • category is ComponentCategory.BATTERY
      • type is None
    • TargetCategories(InverterType.SOLAR)
      • category is ComponentCategory.INVERTER
      • type is InverterType.SOLAR

Bug Fixes

What's Changed

Full Changelog: v0.10.2...v0.11.0