From e44b9b6773f2c6ee318833fbf728a51f2d61c00d Mon Sep 17 00:00:00 2001 From: Andre Basche Date: Thu, 12 Oct 2023 22:26:12 +0200 Subject: [PATCH] Update mypy --- pyhon/appliance.py | 10 +++++----- requirements_dev.txt | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pyhon/appliance.py b/pyhon/appliance.py index 4a2d07c..3586f4a 100644 --- a/pyhon/appliance.py +++ b/pyhon/appliance.py @@ -94,15 +94,15 @@ class HonAppliance: @property def appliance_model_id(self) -> str: - return self._info.get("applianceModelId", "") + return str(self._info.get("applianceModelId", "")) @property def appliance_type(self) -> str: - return self._info.get("applianceTypeName", "") + return str(self._info.get("applianceTypeName", "")) @property def mac_address(self) -> str: - return self.info.get("macAddress", "") + return str(self.info.get("macAddress", "")) @property def unique_id(self) -> str: @@ -138,11 +138,11 @@ class HonAppliance: @property def model_id(self) -> int: - return self._info.get("applianceModelId", 0) + return int(self._info.get("applianceModelId", 0)) @property def options(self) -> Dict[str, Any]: - return self._appliance_model.get("options", {}) + return dict(self._appliance_model.get("options", {})) @property def commands(self) -> Dict[str, HonCommand]: diff --git a/requirements_dev.txt b/requirements_dev.txt index f93ef2f..baeaf1c 100644 --- a/requirements_dev.txt +++ b/requirements_dev.txt @@ -1,4 +1,4 @@ black~=23.9 flake8~=6.1 -mypy~=1.4 +mypy~=1.6 pylint~=3.0