Skip to content

Commit

Permalink
Initialize power usage on 0 instead of None.
Browse files Browse the repository at this point in the history
  • Loading branch information
RicArch97 committed Nov 2, 2020
1 parent 1ee7ecf commit 8af8160
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crownstone_cloud/cloud_models/crownstones.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def __init__(self, cloud, data: Dict[str, Any]) -> None:
self.data: Dict[str, Any] = data
self.abilities: Dict[str, CrownstoneAbility] = {}
# power usage (W)
self.power_usage = None
self.power_usage = 0

@property
def name(self) -> str:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

setup(
name='crownstone-cloud',
version='1.4.2',
version='1.4.3',
long_description=long_description,
long_description_content_type="text/markdown",
url='https://github.com/crownstone/crownstone-lib-python-cloud',
Expand Down

0 comments on commit 8af8160

Please sign in to comment.