Skip to content

Commit a0a09a4

Browse files
committed
Rename method
1 parent 7d76b3c commit a0a09a4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ async def main():
1414
"""Sample code to retrieve the data."""
1515
async with aiohttp.ClientSession() as session:
1616
data = Luftdaten(155, loop, session)
17-
await data.async_get_data()
17+
await data.get_data()
1818

1919
# Print the sensor values
2020
print("Sensor values:", data.values)

luftdaten/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def __init__(self, sensor_id, loop, session):
3333
}
3434
self.meta = {}
3535

36-
async def async_get_data(self):
36+
async def get_data(self):
3737
"""Retrieve the data."""
3838
url = '{}/{}/{}/'.format(_RESOURCE, 'sensor', self.sensor_id)
3939

0 commit comments

Comments
 (0)