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

After unplugging and plugging fan, error reading dust (pact) state #28

Open
tagdara opened this issue Aug 15, 2019 · 0 comments
Open

After unplugging and plugging fan, error reading dust (pact) state #28

tagdara opened this issue Aug 15, 2019 · 0 comments

Comments

@tagdara
Copy link

tagdara commented Aug 15, 2019

When I unplug my fan and then plug it back in, connections never recover. This seems to be related to bad parsing of the "pact" data, expecting an integer but receiving 'INIT'.

Changing line #125 of dyson_pure_state.py to the following seems to allow for an eventual reconnection:

self._dust = 0 if self.__get_field_value(data, 'pact')=='INIT' else int(self.__get_field_value(data, 'pact'))

I'm not sure if setting dust to 0 is the right thing to do, or if there is some other value that makes more sense during the intialization phase.

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

1 participant