Skip to content

Commit

Permalink
fix: broken options flow
Browse files Browse the repository at this point in the history
  • Loading branch information
bramstroker committed Jan 5, 2025
1 parent 354e540 commit 2d97ff3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/powercalc/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -630,8 +630,8 @@ def create_strategy_schema(self) -> vol.Schema:
if not self.strategy:
raise ValueError("No strategy selected") # pragma: no cover

if hasattr(self, f"create_schema_{self.strategy.value.lower()}"):
return getattr(self, f"create_schema_{self.strategy.value.lower()}")() # type: ignore
if hasattr(self, f"create_schema_{self.strategy.lower()}"):
return getattr(self, f"create_schema_{self.strategy.lower()}")() # type: ignore

return STRATEGY_SCHEMAS[self.strategy]

Expand Down

0 comments on commit 2d97ff3

Please sign in to comment.