From 6be541ac77969ea8515c84394e5d0909371c22dd Mon Sep 17 00:00:00 2001 From: UpstreamData Date: Sun, 25 Feb 2024 13:11:10 -0700 Subject: [PATCH] Update pyasic version, and add check for no schema login variables. --- custom_components/miner/config_flow.py | 2 ++ custom_components/miner/manifest.json | 2 +- requirements.txt | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/custom_components/miner/config_flow.py b/custom_components/miner/config_flow.py index 91af602..3f1c3b6 100644 --- a/custom_components/miner/config_flow.py +++ b/custom_components/miner/config_flow.py @@ -144,6 +144,8 @@ async def async_step_login(self, user_input=None): schema = vol.Schema(schema_data) if not user_input: + if len(schema_data) == 0: + return self.async_create_entry(title=self._data[CONF_TITLE], data=self._data) return self.async_show_form(step_id="login", data_schema=schema) self._data.update(user_input) diff --git a/custom_components/miner/manifest.json b/custom_components/miner/manifest.json index f9377b9..b7f5aa8 100644 --- a/custom_components/miner/manifest.json +++ b/custom_components/miner/manifest.json @@ -7,7 +7,7 @@ "homekit": {}, "iot_class": "local_polling", "issue_tracker": "https://github.com/Schnitzel/hass-miner/issues", - "requirements": ["pyasic==0.53.2"], + "requirements": ["pyasic==0.54.1"], "ssdp": [], "version": "1.1.3", "zeroconf": [] diff --git a/requirements.txt b/requirements.txt index bf57fb9..d253010 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,6 +2,6 @@ colorlog==6.7.0 homeassistant>=2024.1.0 pip>=21.0,<23.2 ruff==0.0.267 -pyasic==0.53.2 +pyasic==0.54.1 setuptools==69.0.3 pre-commit