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

Adds checking to see if lights, cooler, heater and sprayer are enable… #13

Closed
wants to merge 1 commit into from

Conversation

brewpirate
Copy link

Added checking for lights enabled in get_state which allows socket server to start for an fresh install.

…d. Added checking for lights enabled in get_enable so socket server would start
@theyosh
Copy link
Owner

theyosh commented Aug 9, 2017

Hi, thanks for the pull request. But I think I will not merge it.
I did find the bug that the system is not starting when there is only a default config. But that is now fixed in 1f728a5 .
The value if the lights are enabled is already there. So I can just use that.

For the other systems, there is not an error. And your pull request does add checks for the other environment parts, but is never used. So that is not good in my opinion.

So, thanks for sending the code, but I will fix it in a different way.

@theyosh theyosh closed this Aug 9, 2017
@brewpirate
Copy link
Author

No worries, that was how I fixed but thought a function to check if enabled would be handy to use in other aspects of the code.

Unused functions are shit, should have omitted and followed up with another PR. Anyways good work!

@brewpirate brewpirate deleted the feature_enabled branch August 9, 2017 19:37
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.

2 participants