Skip to content

Commit

Permalink
Update mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
Andre0512 committed Oct 12, 2023
1 parent 5c650d7 commit e44b9b6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions pyhon/appliance.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,15 +94,15 @@ def _check_name_zone(self, name: str, frontend: bool = True) -> str:

@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:
Expand Down Expand Up @@ -138,11 +138,11 @@ def code(self) -> str:

@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]:
Expand Down
2 changes: 1 addition & 1 deletion requirements_dev.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
black~=23.9
flake8~=6.1
mypy~=1.4
mypy~=1.6
pylint~=3.0

0 comments on commit e44b9b6

Please sign in to comment.