Skip to content

Commit

Permalink
Update station.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Noltari authored Aug 23, 2023
1 parent 616b4be commit 50d5555
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions aemet_opendata/station.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@
AOD_TEMP_MIN,
AOD_TIMESTAMP,
ATTR_DATA,
RAW_DATA,
RAW_INFO,
)


Expand Down Expand Up @@ -90,9 +88,6 @@ class Station:

def __init__(self, data: dict[str, Any]) -> None:
"""Init AEMET OpenData Station."""
self._api_raw_data = {
RAW_INFO: data,
}
self.altitude = float(data[AEMET_ATTR_STATION_ALTITUDE])
self.coords = (
float(data[AEMET_ATTR_STATION_LATITUDE]),
Expand Down Expand Up @@ -126,13 +121,8 @@ def update(self, data: dict[str, Any]) -> None:
entry = StationData(cur_data)
entries += [entry]

self._api_raw_data[RAW_DATA] = data
self.entries = entries

def raw_data(self) -> dict[str, Any]:
"""Return raw Station data."""
return self._api_raw_data

def data(self) -> dict[str, Any]:
"""Return station data."""
data: dict[str, Any] = {
Expand Down

0 comments on commit 50d5555

Please sign in to comment.