Skip to content

Commit

Permalink
Set minimum required HA version to 2023.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ollo69 committed Aug 16, 2023
1 parent b4d1853 commit bb02e9e
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "SamsungTV Smart Integration",
"image": "mcr.microsoft.com/vscode/devcontainers/python:0-3.10-bullseye",
"image": "mcr.microsoft.com/vscode/devcontainers/python:0-3.11-bullseye",
"postCreateCommand": "scripts/setup",
"forwardPorts": [
8123
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/linting.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- master

pull_request:
branches: '*'
branches: "*"

jobs:
lint:
Expand All @@ -17,7 +17,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: 3.9
python-version: 3.11

- name: Install dependencies
run: |
Expand Down
10 changes: 8 additions & 2 deletions custom_components/samsungtv_smart/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,32 @@


class AppLoadMethod(Enum):
"""Valid application load methods."""

All = 1
Default = 2
NotLoad = 3


class AppLaunchMethod(Enum):
"""Valid application launch methods."""

Standard = 1
Remote = 2
Rest = 3


class PowerOnMethod(Enum):
"""Valid power on methods."""

WOL = 1
SmartThings = 2


DOMAIN = "samsungtv_smart"

MIN_HA_MAJ_VER = 2022
MIN_HA_MIN_VER = 11
MIN_HA_MAJ_VER = 2023
MIN_HA_MIN_VER = 7
__min_ha_version__ = f"{MIN_HA_MAJ_VER}.{MIN_HA_MIN_VER}.0"

DATA_CFG_YAML = "cfg_yaml"
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": "SamsungTV Smart",
"content_in_root": false,
"homeassistant": "2022.11.0"
"homeassistant": "2023.7.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.7.0
homeassistant==2022.11.4
homeassistant==2023.7.0
pip>=21.0,<23.2
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.1.3
pytest==7.3.1
#pytest-cov==2.9.0
#pytest-homeassistant
pytest-homeassistant-custom-component==0.12.21
pytest-homeassistant-custom-component==0.13.42
# From our manifest.json for our custom component
websocket-client!=1.4.0,>=0.58.0
wakeonlan>=2.0.0
Expand Down

0 comments on commit bb02e9e

Please sign in to comment.