Skip to content

Commit ec0acd4

Browse files
committed
Fixes json output for values that are zero
1 parent 541e433 commit ec0acd4

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
55
## [Unreleased]
66
- No unreleased changes so far
77

8+
## [0.36.2] - 2022-02-10
9+
### Fixed
10+
- Fixes json output for values that are zero
11+
812
## [0.36.1] - 2022-02-10
913
### Fixed
1014
- Fixes for chargePower, chargeRate and remaining climatisationTime when fixAPI=True
@@ -487,7 +491,8 @@ Minor fix in observer interface
487491
## [0.1.0] - 2021-05-26
488492
Initial release
489493

490-
[unreleased]: https://github.com/tillsteinbach/WeConnect-python/compare/v0.36.1...HEAD
494+
[unreleased]: https://github.com/tillsteinbach/WeConnect-python/compare/v0.36.2...HEAD
495+
[0.36.2]: https://github.com/tillsteinbach/WeConnect-python/releases/tag/v0.36.2
491496
[0.36.1]: https://github.com/tillsteinbach/WeConnect-python/releases/tag/v0.36.1
492497
[0.36.0]: https://github.com/tillsteinbach/WeConnect-python/releases/tag/v0.36.0
493498
[0.35.1]: https://github.com/tillsteinbach/WeConnect-python/releases/tag/v0.35.1

weconnect/addressable.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ def asDict(self, filterCallable: Optional[Callable[[Any], None]] = None):
436436
for child in self.children:
437437
if child.enabled:
438438
childDict = child.asDict(filterCallable=filterCallable)
439-
if childDict:
439+
if childDict is not None:
440440
asDict[child.getLocalAddress()] = childDict
441441
return asDict
442442

0 commit comments

Comments
 (0)