Skip to content

Commit

Permalink
fix: cleanup logic
Browse files Browse the repository at this point in the history
  • Loading branch information
bramstroker committed Jan 1, 2025
1 parent 3b5f4ce commit 66f40f6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions custom_components/powercalc/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -937,8 +937,7 @@ async def _validate(user_input: dict[str, Any]) -> dict[str, str]:
self.selected_profile = profile
if (
self.selected_profile
and not await self.selected_profile.has_sub_profiles
and self.selected_profile.calculation_strategy != CalculationStrategy.COMPOSITE
and not await self.selected_profile.needs_user_configuration
):
await self.validate_strategy_config()
return user_input
Expand Down

0 comments on commit 66f40f6

Please sign in to comment.