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

Fixing 'Unknown' status for Nest Protect devices #4475

Merged
merged 2 commits into from
Nov 22, 2016
Merged

Fixing 'Unknown' status for Nest Protect devices #4475

merged 2 commits into from
Nov 22, 2016

Conversation

Khabi
Copy link
Contributor

@Khabi Khabi commented Nov 20, 2016

Description: After the refactor next protect sensors broke because of the switch from return statements to the use of self._state. This fixes that.

Related issue (if applicable): fixes #4293

Checklist:

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

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

  • Local tests with tox run successfully. Your PR cannot be merged unless tests pass
  • New dependencies have been added to the REQUIREMENTS variable (example).
  • New dependencies are only imported inside functions that use them (example).
  • New 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:

  • Local tests with tox run successfully. Your PR cannot be merged unless tests pass
  • Tests have been added to verify that the new code works.

@mention-bot
Copy link

@Khabi, thanks for your PR! By analyzing the history of the files in this pull request, we identified @pvizeli, @jaharkes and @fabaff to be potential reviewers.

@@ -195,15 +195,15 @@ def update(self):
if self.variable == 'battery_level':
self._state = getattr(self.device, self.variable)
else:
self._state = 'Unknown'

Choose a reason for hiding this comment

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

blank line contains whitespace

@rpitera
Copy link

rpitera commented Nov 20, 2016

Confirm this corrects the Nest Protect issue for me. Thanks!

@balloob balloob merged commit 6863d2e into home-assistant:dev Nov 22, 2016
@balloob balloob added this to the 0.33.2 milestone Nov 22, 2016
balloob pushed a commit that referenced this pull request Nov 22, 2016
* Fixing 'Unknown' status for Nest Protect devices

* Fixing bad formatting
@home-assistant home-assistant locked and limited conversation to collaborators Mar 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0.32.2: Nest no longer gathers any data
5 participants