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

Fix Hue sensors returning None value #23478

Merged
merged 1 commit into from Apr 27, 2019
Merged

Fix Hue sensors returning None value #23478

merged 1 commit into from Apr 27, 2019

Conversation

balloob
Copy link
Member

@balloob balloob commented Apr 27, 2019

Description:

Make sure to check that state is not None before doing calculations.

Related issue (if applicable): fixes #23456

Pull request in home-assistant.io with documentation (if applicable): home-assistant/home-assistant.io#<home-assistant.io PR number goes here>

Example entry for configuration.yaml (if applicable):

Checklist:

  • The code change is tested and works locally.
  • Local tests pass with tox. Your PR cannot be merged unless tests pass
  • There is no commented out code in this PR.

If user exposed functionality or configuration variables are added/changed:

If the code communicates with devices, web services, or third-party tools:

  • The manifest file has all fields filled out correctly (example).
  • New dependencies have been added to requirements in the manifest (example).
  • New dependencies are only imported inside functions that use them (example).
  • New or updated dependencies have been added to requirements_all.txt by running script/gen_requirements_all.py.
  • New files were added to .coveragerc.

If the code does not interact with devices:

  • Tests have been added to verify that the new code works.

@balloob balloob added this to the 0.92.2 milestone Apr 27, 2019
@ghost ghost assigned balloob Apr 27, 2019
@balloob balloob merged commit 26bf1b2 into dev Apr 27, 2019
@delete-merged-branch delete-merged-branch bot deleted the fix-hue-sensor branch April 27, 2019 20:27
balloob added a commit that referenced this pull request May 2, 2019
@balloob balloob mentioned this pull request May 2, 2019
fredrikbaberg pushed a commit to fredrikbaberg/home-assistant that referenced this pull request May 6, 2019
fredrikbaberg pushed a commit to fredrikbaberg/home-assistant that referenced this pull request May 6, 2019
fredrikbaberg pushed a commit to fredrikbaberg/home-assistant that referenced this pull request May 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Hue logspam in 0.92.1
3 participants