Skip to content

Commit df9e604

Browse files
committed
Add support for altitude
1 parent 7fc6099 commit df9e604

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

luftdaten/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ async def get_data(self):
6161
self.meta['longitude'] = float(
6262
sensor_data['location']['longitude'])
6363
self.meta['latitude'] = float(sensor_data['location']['latitude'])
64+
self.meta['altitude'] = float(sensor_data['location']['altitude'])
6465
except (TypeError, IndexError):
6566
raise exceptions.LuftdatenError()
6667

0 commit comments

Comments
 (0)