Skip to content

Commit 8af8160

Browse files
committed
Initialize power usage on 0 instead of None.
1 parent 1ee7ecf commit 8af8160

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

crownstone_cloud/cloud_models/crownstones.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def __init__(self, cloud, data: Dict[str, Any]) -> None:
112112
self.data: Dict[str, Any] = data
113113
self.abilities: Dict[str, CrownstoneAbility] = {}
114114
# power usage (W)
115-
self.power_usage = None
115+
self.power_usage = 0
116116

117117
@property
118118
def name(self) -> str:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
setup(
88
name='crownstone-cloud',
9-
version='1.4.2',
9+
version='1.4.3',
1010
long_description=long_description,
1111
long_description_content_type="text/markdown",
1212
url='https://github.com/crownstone/crownstone-lib-python-cloud',

0 commit comments

Comments
 (0)