Skip to content

Commit

Permalink
Set minimum required HA version to 2024.8 and define ON/OFF in fan fe…
Browse files Browse the repository at this point in the history
…ature list (#792)

* Define ON/OFF in fan feature list
* Updated minimum required HomeAssistant version

---------

Co-authored-by: @ollo69
  • Loading branch information
iprak authored Oct 6, 2024
1 parent 93599e2 commit 0c1168e
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11", "3.12"]
python-version: ["3.12"]

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion custom_components/smartthinq_sensors/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
DOMAIN = "smartthinq_sensors"

MIN_HA_MAJ_VER = 2024
MIN_HA_MIN_VER = 2
MIN_HA_MIN_VER = 8
__min_ha_version__ = f"{MIN_HA_MAJ_VER}.{MIN_HA_MIN_VER}.0"

# general sensor attributes
Expand Down
2 changes: 1 addition & 1 deletion custom_components/smartthinq_sensors/fan.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ def __init__(self, api: LGEDevice, description: ThinQFanEntityDescription) -> No
@property
def supported_features(self) -> FanEntityFeature:
"""Return the list of supported features."""
features = FanEntityFeature(0)
features = FanEntityFeature.TURN_ON | FanEntityFeature.TURN_OFF
if self.speed_count > 1:
features |= FanEntityFeature.SET_SPEED
if self.preset_modes is not None:
Expand Down
2 changes: 1 addition & 1 deletion hacs.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "SmartThinQ LGE Sensors",
"content_in_root": false,
"homeassistant": "2024.2.0"
"homeassistant": "2024.8.0"
}
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Home Assistant Core
colorlog==6.8.2
homeassistant==2024.2.4
homeassistant==2024.8.3
pip>=21.3.1
ruff==0.0.261
pre-commit==3.0.0
Expand Down
4 changes: 2 additions & 2 deletions requirements_test.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Strictly for tests
pytest==7.4.4
pytest==8.3.1
#pytest-cov==2.9.0
#pytest-homeassistant
pytest-homeassistant-custom-component==0.13.103
pytest-homeassistant-custom-component==0.13.155
# From our manifest.json for our custom component
xmltodict>=0.13.0
charset_normalizer>=3.2.0
Expand Down

0 comments on commit 0c1168e

Please sign in to comment.