Skip to content

Commit

Permalink
bug: fix newer bos grpc miners with passwords failing to setup
Browse files Browse the repository at this point in the history
  • Loading branch information
UpstreamData committed Jan 23, 2025
1 parent c90abf2 commit 782786f
Show file tree
Hide file tree
Showing 4 changed files with 362 additions and 149 deletions.
12 changes: 12 additions & 0 deletions custom_components/miner/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,18 @@ async def async_step_login(self, user_input=None):

async def async_step_title(self, user_input=None):
"""Get entity title."""
if self._miner.api is not None:
if self._miner.api.pwd is not None:
self._miner.api.pwd = self._data.get(CONF_RPC_PASSWORD, "")

if self._miner.web is not None:
self._miner.web.username = self._data.get(CONF_WEB_USERNAME, "")
self._miner.web.pwd = self._data.get(CONF_WEB_PASSWORD, "")

if self._miner.ssh is not None:
self._miner.ssh.username = self._data.get(CONF_SSH_USERNAME, "")
self._miner.ssh.pwd = self._data.get(CONF_SSH_PASSWORD, "")

title = await self._miner.get_hostname()

if user_input is None:
Expand Down
2 changes: 1 addition & 1 deletion custom_components/miner/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@
JOULES_PER_TERA_HASH = "J/TH"


PYASIC_VERSION = "0.70.2"
PYASIC_VERSION = "0.70.3"
Loading

0 comments on commit 782786f

Please sign in to comment.