hamsclientfork 0.2.15__tar.gz → 0.2.16__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: hamsclientfork
3
- Version: 0.2.15
3
+ Version: 0.2.16
4
4
  Summary: Library to get data from meteo swiss
5
5
  Home-page: https://github.com/Rudd-O/hamsclientfork
6
6
  Author: websylv
@@ -297,8 +297,7 @@ class meteoSwissClient:
297
297
  condition_list = []
298
298
  for station in self._stations:
299
299
  _LOGGER.debug("Get current condition for : %s" % station)
300
- stationData = data.loc[data["Station/Location"].str.contains(station)]
301
- stationData = stationData.to_dict("records")
300
+ stationData = [d for d in data if d["Station/Location"] == station]
302
301
  condition_list.extend(stationData)
303
302
  if stationData:
304
303
  conditions[station] = stationData[0]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: hamsclientfork
3
- Version: 0.2.15
3
+ Version: 0.2.16
4
4
  Summary: Library to get data from meteo swiss
5
5
  Home-page: https://github.com/Rudd-O/hamsclientfork
6
6
  Author: websylv
@@ -15,7 +15,7 @@ def read(filename):
15
15
 
16
16
  setup(
17
17
  name="hamsclientfork",
18
- version="0.2.15",
18
+ version="0.2.16",
19
19
  url="https://github.com/Rudd-O/hamsclientfork",
20
20
  license="MIT",
21
21
  author="websylv",
File without changes
File without changes