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