Skip to content

Conversation

@dingusdk
Copy link
Contributor

This pull request is support for The Airthings Wave 2nd generation. This new version or the airthings wave has a new uuid, but returns data the same way as the wave plus (but only a subset)

Copy link
Member

@MartyTremblay MartyTremblay left a comment

Choose a reason for hiding this comment

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

This looks good!

I can't test it but I'm confidant that it will work as expected.

def decode_data(self, raw_data):
val = super().decode_data(raw_data)
val = val[self.name]
# if val[0] != 1:
Copy link
Member

Choose a reason for hiding this comment

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

Just being a stickler here. Should this dead code be removed? Any reason to keep it in a comment?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes it can be removed, i just forgot.

@dingusdk
Copy link
Contributor Author

I have verified it on my airthings wave 2. The uuid i got from airthigs example:
https://github.com/Airthings/wave-reader/blob/master/read_wave2.py

@MartyTremblay
Copy link
Member

Added support for ware 2nd gen

@MartyTremblay MartyTremblay merged commit 9b9e6a9 into custom-components:master Aug 26, 2020
@MartyTremblay
Copy link
Member

resolves #23

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