Skip to content

Commit

Permalink
Add API Level 2 for Windows Heating and API Level 3 for Charger
Browse files Browse the repository at this point in the history
  • Loading branch information
cyr-ius committed Dec 31, 2023
1 parent cc46a42 commit a85603c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
14 changes: 14 additions & 0 deletions custom_components/audiconnect/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
API_LEVEL_CLIMATISATION = "api_level_climatisation"
API_LEVEL_VENTILATION = "api_level_ventilation"
API_LEVEL_CHARGER = "api_level_charger"
API_LEVEL_WINDOWSHEATING = "api_level_windows_heating"


class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
Expand Down Expand Up @@ -170,6 +171,19 @@ async def async_step_apilevel(self, user_input=None):
vol.Required(
API_LEVEL_CHARGER,
default=api_level.get(API_LEVEL_CHARGER, "1"),
): SelectSelector(
SelectSelectorConfig(
mode=SelectSelectorMode.DROPDOWN,
options=[
SelectOptionDict(value="1", label="Level 1"),
SelectOptionDict(value="2", label="Level 2"),
SelectOptionDict(value="2", label="Level 3"),
],
)
),
vol.Required(
API_LEVEL_WINDOWSHEATING,
default=api_level.get(API_LEVEL_WINDOWSHEATING, "1"),
): SelectSelector(
SelectSelectorConfig(
mode=SelectSelectorMode.DROPDOWN,
Expand Down
4 changes: 2 additions & 2 deletions custom_components/audiconnect/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
"iot_class": "cloud_polling",
"issue_tracker": "https://github.com/cyr-ius/hass-audiconnect/issues",
"loggers": ["audiconnectpy"],
"requirements": ["audiconnectpy==1.5.0"],
"version": "1.4.5"
"requirements": ["audiconnectpy==1.5.2"],
"version": "1.4.6"
}

0 comments on commit a85603c

Please sign in to comment.