Skip to content

Commit

Permalink
chore: update rate type comparison for direct consumer function
Browse files Browse the repository at this point in the history
  • Loading branch information
frodehk committed Mar 6, 2025
1 parent ec2e22a commit 8939dd2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def __init__(
direct_consumer_consumption_rate_type = consumption_rate_type
self._energy_usage_type = energy_usage_type
self._expression = expression
self._convert_to_stream_day = direct_consumer_consumption_rate_type == RateType.CALENDAR_DAY
self._convert_to_stream_day = RateType(direct_consumer_consumption_rate_type.value) == RateType.CALENDAR_DAY
self._condition_expression = condition_expression
self._power_loss_factor_expression = power_loss_factor_expression

Expand Down

0 comments on commit 8939dd2

Please sign in to comment.