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

On/Off/Manual mode fixes #6

Merged
merged 3 commits into from
Apr 1, 2017
Merged

On/Off/Manual mode fixes #6

merged 3 commits into from
Apr 1, 2017

Conversation

jannau
Copy link
Contributor

@jannau jannau commented Mar 27, 2017

On-, Off, Min-, Max-temperatures were used inconsistently. Setting On mode was not possible.

When changing from On or Off to manual we have to use a temperature which is distinct the ON or OFF temperature.

self.min_temp)
return self.set_mode(0x40 | int(temperature * 2))
else:
return self.set_mode(0)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indentation is not a multiple of four

@rytilahti
Copy link
Owner

Looks fine for me, I should not have tried to be too clever with those special cases, thanks for the patch!

@rytilahti rytilahti merged commit 7d0f35c into rytilahti:master Apr 1, 2017
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

Successfully merging this pull request may close these issues.

3 participants