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 some rfxtrx devices with multiple sensors #12264

Merged
merged 2 commits into from
Feb 10, 2018
Merged

Fix some rfxtrx devices with multiple sensors #12264

merged 2 commits into from
Feb 10, 2018

Conversation

neffs
Copy link
Contributor

@neffs neffs commented Feb 9, 2018

Some combined temperature/humidity sensors send one packet for each of
their sensors. Without this fix one of the home assistant sensors would
always display an unknown value.

Some combined temperature/humidity sensors send one packet for each of
their sensors. Without this fix one of the home assistant sensors would
always display an unknown value.
@homeassistant
Copy link
Contributor

Hi @neffs,

It seems you haven't yet signed a CLA. Please do so here.

Once you do that we will be able to review and accept this pull request.

Thanks!

for key in sensors:
sensor = sensors[key]
for data_type in sensors:
if data_type not in event.values:
Copy link
Member

Choose a reason for hiding this comment

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

Could you add a comment to describe this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK, done

@Danielhiversen
Copy link
Member

Have you tested the code locally?
Both with sensors that worked before and with sensors that should work now?

For the next time. There is a pull request template, that you are supposed to fill out, and it has a check list that you should mark.

@neffs
Copy link
Contributor Author

neffs commented Feb 10, 2018

I tested it as a custom component locally and my combined temperature/humidity sensor (LaCrosse protocol) works properly now.

I created this pull request from the desktop app, where no template is shown. Sorry! Next time I'll use the template.

@Danielhiversen Danielhiversen merged commit 134445f into home-assistant:dev Feb 10, 2018
@Danielhiversen
Copy link
Member

👍

@balloob balloob mentioned this pull request Feb 22, 2018
@home-assistant home-assistant locked and limited conversation to collaborators May 29, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants