From 8af81606fa3f2fe5bdaf91ba174fda0e11eea774 Mon Sep 17 00:00:00 2001 From: RicArch97 Date: Mon, 2 Nov 2020 23:18:31 +0100 Subject: [PATCH] Initialize power usage on 0 instead of None. --- crownstone_cloud/cloud_models/crownstones.py | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crownstone_cloud/cloud_models/crownstones.py b/crownstone_cloud/cloud_models/crownstones.py index 6b1d422..f1dd094 100644 --- a/crownstone_cloud/cloud_models/crownstones.py +++ b/crownstone_cloud/cloud_models/crownstones.py @@ -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: diff --git a/setup.py b/setup.py index 9943225..e73f80d 100644 --- a/setup.py +++ b/setup.py @@ -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',