Skip to content

Commit

Permalink
CI: Add testing against HA 2024.5
Browse files Browse the repository at this point in the history
  • Loading branch information
dext0r committed Apr 27, 2024
1 parent 33f5322 commit 73c15ee
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ jobs:
python-version: '3.12'
- ha-version: '2024.4'
python-version: '3.12'
- ha-version: '2024.5'
python-version: '3.12'
latest: true
steps:
- uses: actions/checkout@v3
Expand Down
6 changes: 5 additions & 1 deletion custom_components/yandex_smart_home/notifier.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Implement the Yandex Smart Home event notification service (notifier)."""

from __future__ import annotations

from abc import ABC, abstractmethod
Expand Down Expand Up @@ -191,7 +192,10 @@ def __init__(

async def async_setup(self) -> None:
"""Set up the notifier."""
self._unsub_state_changed = self._hass.bus.async_listen(EVENT_STATE_CHANGED, self._async_state_changed)
self._unsub_state_changed = self._hass.bus.async_listen(
EVENT_STATE_CHANGED,
self._async_state_changed, # type: ignore
)
self._unsub_initial_report = async_call_later(
self._hass, INITIAL_REPORT_DELAY, HassJob(self._async_initial_report)
)
Expand Down
8 changes: 8 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,18 @@ init_typed = true
warn_required_dynamic_aliases = true
warn_untyped_fields = true

[[tool.mypy.overrides]]
module = "custom_components.yandex_smart_home"
warn_unused_ignores = false

[[tool.mypy.overrides]]
module = "custom_components.yandex_smart_home.cloud_stream"
warn_unused_ignores = false

[[tool.mypy.overrides]]
module = "custom_components.yandex_smart_home.notifier"
warn_unused_ignores = false

[[tool.mypy.overrides]]
module = "tests.*"
disallow_untyped_calls = false
Expand Down
7 changes: 7 additions & 0 deletions tests/requirements_2024.5.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pytest-homeassistant-custom-component==0.13.116
aiohttp-cors==0.7.0
home_assistant_intents==2024.4.24
hassil==1.7.0
mutagen==1.47.0
ha-ffmpeg==3.2.0
voluptuous-stubs==0.1.1

0 comments on commit 73c15ee

Please sign in to comment.