-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
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
Conversation
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.
for key in sensors: | ||
sensor = sensors[key] | ||
for data_type in sensors: | ||
if data_type not in event.values: |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, done
Have you tested the code locally? 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. |
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. |
👍 |
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.