Skip to content

Commit

Permalink
Merge pull request #2892 from bramstroker/fix/options-flow
Browse files Browse the repository at this point in the history
fix broken options flow
  • Loading branch information
bramstroker authored Jan 5, 2025
2 parents 354e540 + 2d97ff3 commit 99fc90f
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 99fc90f

Please sign in to comment.