Skip to content

Commit

Permalink
Update pyasic version, and add check for no schema login variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
UpstreamData committed Feb 25, 2024
1 parent 47a8925 commit 6be541a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions custom_components/miner/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion custom_components/miner/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": []
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 6be541a

Please sign in to comment.