Skip to content

Commit

Permalink
fixing null or invalid value
Browse files Browse the repository at this point in the history
  • Loading branch information
bigmoby committed Sep 20, 2024
1 parent 301c296 commit 7db3f33
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 12 deletions.
8 changes: 2 additions & 6 deletions custom_components/fglair_heatpump_controller/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -530,12 +530,8 @@ def swing_mode(self) -> str | None:
def swing_modes(self) -> Optional[list[str]]:
"""List of available swing modes."""

vert_pos_list: Optional[list[int]] = (
self._fujitsu_device.vane_vertical_positions()
)
hori_pos_list: Optional[list[int]] = (
self._fujitsu_device.vane_horizontal_positions()
)
vert_pos_list = self._fujitsu_device.vane_vertical_positions()
hori_pos_list = self._fujitsu_device.vane_horizontal_positions()
pos_list: list[str] = []

# Add swing modes to the list if supported
Expand Down
3 changes: 2 additions & 1 deletion custom_components/fglair_heatpump_controller/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ async def _create_client( # pylint: disable=R0913
)

async def async_step_user(
self, user_input: dict | None = None # type: ignore[type-arg]
self,
user_input: dict | None = None, # type: ignore[type-arg]
) -> ConfigFlowResult:
"""User initiated config flow."""
if user_input is None:
Expand Down
2 changes: 1 addition & 1 deletion custom_components/fglair_heatpump_controller/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
NAME = "FGLair Home Assistant Integration"
DOMAIN = "fglair_heatpump_controller"
DOMAIN_DATA = f"{DOMAIN}_data"
VERSION = "0.3.21"
VERSION = "0.3.22"

ATTRIBUTION = "Data provided by http://jsonplaceholder.typicode.com/"
ISSUE_URL = "https://github.com/bigmoby/fglair_for_homeassistant/issues"
Expand Down
4 changes: 2 additions & 2 deletions custom_components/fglair_heatpump_controller/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"pyfujitsugeneral"
],
"requirements": [
"pyfujitsugeneral==2.0.29"
"pyfujitsugeneral==2.0.30"
],
"version": "0.3.21"
"version": "0.3.22"
}
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "fglair_heatpump_controller"
version = "0.3.21"
version = "0.3.22"
license = {text = "MIT License"}
description = "FGLair heat pump controller integration"
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ colorlog==6.8.2
homeassistant==2024.5.0b1
pip>=24.1.2,<24.3
ruff==0.6.5
pyfujitsugeneral==2.0.29
pyfujitsugeneral==2.0.30

0 comments on commit 7db3f33

Please sign in to comment.