Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ruckus component stops at second ssh connection #1

Open
cnrd opened this issue Feb 27, 2020 · 1 comment
Open

Ruckus component stops at second ssh connection #1

cnrd opened this issue Feb 27, 2020 · 1 comment

Comments

@cnrd
Copy link

cnrd commented Feb 27, 2020

Hi

I'm having a problem with the ruckus_direct component.

The first time it connects to the AP everything is working just fine, it connects, fetches the data and returns.

The second time however it seems to be hanging at the line:
ssh = pexpect.spawn(connect.format(self.username, self.host))

I tried adding a forced close: ssh.close(force=True) after the data was done being fetched, as I was guessing it's a straggling connection that is not being cleaned correctly.

Do you have any ideas as to what the problem could be?

@bbrendon
Copy link
Owner

Wow. I'm surprised anyone found this :). Good job sleuthing.

Anyway, no. No ideas off the top of my head. From my experience, if there are connection issues, the component stops working until HASS is restarted. It happens to me very rarely and I haven't gone back and tried figuring it out. I made some notes in the source about it.

I'm not a very experienced programmer. If I get some time, I'll have a look and see what I can come up with.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants