Skip to content

Commit 20840b9

Browse files
authored
tests: compatibility for Home Assistant >= 2025.4 (#181)
1 parent d161faa commit 20840b9

File tree

5 files changed

+7
-6
lines changed

5 files changed

+7
-6
lines changed

.github/workflows/building.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Setup Python
2626
uses: actions/setup-python@v5
2727
with:
28-
python-version: '3.12'
28+
python-version: '3.13'
2929

3030
- name: Upgrade pip and install required tools
3131
run: |

.github/workflows/linting.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Setup Python
2626
uses: actions/setup-python@v5
2727
with:
28-
python-version: '3.12'
28+
python-version: '3.13'
2929

3030
- name: Upgrade pip and install required tools
3131
run: |

.github/workflows/testing.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ jobs:
2828
uses: actions/setup-python@v5
2929
with:
3030
python-version: |
31-
3.11
32-
3.12
31+
3.13
3332
3433
- name: Upgrade pip and install required tools
3534
run: |

tests/test_services.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ async def test_service_arm_sectors(hass, config_entry, alarm_device, coordinator
1515
"coordinator": coordinator,
1616
}
1717
call = ServiceCall(
18+
hass=hass,
1819
domain=DOMAIN,
1920
service="arm_sectors",
2021
data={
@@ -42,6 +43,7 @@ async def test_service_disarm_sectors(hass, config_entry, alarm_device, coordina
4243
"coordinator": coordinator,
4344
}
4445
call = ServiceCall(
46+
hass=hass,
4547
domain=DOMAIN,
4648
service="disarm_sectors",
4749
data={
@@ -67,6 +69,7 @@ async def test_service_update_state(hass, config_entry, alarm_device, coordinato
6769
"coordinator": coordinator,
6870
}
6971
call = ServiceCall(
72+
hass=hass,
7073
domain=DOMAIN,
7174
service="update_state",
7275
data={},

tox.ini

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
[tox]
22
envlist =
33
lint
4-
python3.11
5-
python3.12
4+
python3.13
65

76
[testenv]
87
allowlist_externals = pytest

0 commit comments

Comments
 (0)