Skip to content

Commit cb90e07

Browse files
committed
s/uuid/deviceUUID
Awair changed their GraphQL API, we need to send the deviceUUID query parameter now.
1 parent 9e411f5 commit cb90e07

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

python_awair/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def devices(self):
3232
def air_data_latest(self, uuid, fahrenheit=False):
3333
"""Returns the latest air quality measurements."""
3434
variables = {
35-
"uuid": self._quote(uuid),
35+
"deviceUUID": self._quote(uuid),
3636
"fahrenheit": self._quote(fahrenheit),
3737
}
3838

@@ -45,7 +45,7 @@ def air_data_five_minute(self, uuid, **kwargs):
4545
"""Returns the 5min summary air quality measurements."""
4646
# args from_date, to_date, limit, desc, fahrenheit)
4747
variables = {
48-
"uuid": self._quote(uuid),
48+
"deviceUUID": self._quote(uuid),
4949
}
5050

5151
for key, value in kwargs.items():
@@ -60,7 +60,7 @@ def air_data_fifteen_minute(self, uuid, **kwargs):
6060
"""Returns the 15min summary air quality measurements."""
6161
# args from_date, to_date, limit, desc, fahrenheit)
6262
variables = {
63-
"uuid": self._quote(uuid),
63+
"deviceUUID": self._quote(uuid),
6464
}
6565

6666
for key, value in kwargs.items():
@@ -75,7 +75,7 @@ def air_data_raw(self, uuid, **kwargs):
7575
"""Returns raw air quality measurements."""
7676
# args from_date, to_date, limit, desc, fahrenheit)
7777
variables = {
78-
"uuid": self._quote(uuid),
78+
"deviceUUID": self._quote(uuid),
7979
}
8080

8181
for key, value in kwargs.items():

0 commit comments

Comments
 (0)