Skip to content

Commit

Permalink
Merge branch 'release/v5.2.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
jabesq committed Jul 22, 2021
2 parents cd336fe + ae8691d commit 17ba686
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 170 deletions.
12 changes: 10 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Security

-

## [5.2.3] - 2021-07-22

### Fixed

- Ignore if API omits unimportant attributes in response

## [5.2.2] - 2021-07-21

### Fixed
Expand Down Expand Up @@ -119,8 +126,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Fix crash when station name is not contained in the backend data

[unreleased]: https://github.com/jabesq/pyatmo/compare/v5.2.2...HEAD
[5.2.2]: https://github.com/jabesq/pyatmo/compare/v5.1.2...v5.2.2
[unreleased]: https://github.com/jabesq/pyatmo/compare/v5.2.3...HEAD
[5.2.3]: https://github.com/jabesq/pyatmo/compare/v5.2.2...v5.2.3
[5.2.2]: https://github.com/jabesq/pyatmo/compare/v5.2.1...v5.2.2
[5.2.1]: https://github.com/jabesq/pyatmo/compare/v5.2.0...v5.2.1
[5.2.0]: https://github.com/jabesq/pyatmo/compare/v5.1.0...v5.2.0
[5.1.0]: https://github.com/jabesq/pyatmo/compare/v5.0.1...v5.1.0
Expand Down
204 changes: 43 additions & 161 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 2 additions & 6 deletions src/pyatmo/public_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

from .auth import AbstractAsyncAuth, NetatmoOAuth2
from .exceptions import NoDevice
from .helpers import _BASE_URL, to_time_string
from .helpers import _BASE_URL

_GETPUBLIC_DATA = _BASE_URL + "api/getpublicdata"

Expand Down Expand Up @@ -42,14 +42,10 @@ class AbstractPublicData(ABC):

raw_data: dict = defaultdict(dict)
status: str = ""
time_exec: str = ""
time_server: str = ""

def process(self, resp: dict) -> None:
"""Process data from API."""
self.status = resp["status"]
self.time_exec = to_time_string(resp["time_exec"])
self.time_server = to_time_string(resp["time_server"])
self.status = resp.get("status", "")

def stations_in_area(self) -> int:
return len(self.raw_data)
Expand Down
2 changes: 1 addition & 1 deletion src/version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
MAJOR_VERSION = 5
MINOR_VERSION = 2
PATCH_VERSION = 2
PATCH_VERSION = 3
__version__ = f"{MAJOR_VERSION}.{MINOR_VERSION}.{PATCH_VERSION}"

0 comments on commit 17ba686

Please sign in to comment.