Skip to content

Commit

Permalink
Revert "Add dynamic option menu items for climate and weather"
Browse files Browse the repository at this point in the history
This reverts commit 40181d7.
  • Loading branch information
basbruss committed Apr 22, 2024
1 parent 40181d7 commit 27120be
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 12 deletions.
9 changes: 3 additions & 6 deletions custom_components/adaptive_cover/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,12 +436,9 @@ async def async_step_init(
self, user_input: dict[str, Any] | None = None
) -> FlowResult:
"""Manage the options."""
options = ["automation", "blind"]
if self.options[CONF_CLIMATE_MODE]:
options.append("climate")
if self.options.get(CONF_WEATHER_ENTITY):
options.append("weather")
return self.async_show_menu(step_id="init", menu_options=options)
return self.async_show_menu(
step_id="init", menu_options=["automation", "blind"]
)

async def async_step_automation(self, user_input: dict[str, Any] | None = None):
"""Manage automation options."""
Expand Down
4 changes: 1 addition & 3 deletions custom_components/adaptive_cover/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,7 @@
"init": {
"menu_options": {
"automation": "Modify Automation Configuration",
"blind": "Fine-tune Blind Settings",
"climate": "Edit Climate Configuration",
"weather": "Edit Weather Configuration"
"blind": "Fine-tune Blind Settings"
}
},
"automation": {
Expand Down
4 changes: 1 addition & 3 deletions custom_components/adaptive_cover/translations/nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,7 @@
"init": {
"menu_options": {
"automation": "Wijzig Automatiseringsinstellingen",
"blind": "Pas parameters van de zonwering aan",
"climate": "Bewerk Klimaatconfiguratie",
"weather": "Bewerk Weercondities"
"blind": "Pas parameters van de zonwering aan"
}
},
"automation": {
Expand Down

0 comments on commit 27120be

Please sign in to comment.