errors correction

This commit is contained in:
Sergey Makarov
2024-11-18 00:57:27 +03:00
parent 9cda11ad40
commit 7adcad1fad
3 changed files with 12 additions and 4 deletions
+1 -4
View File
@@ -18,10 +18,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest pylint
pip install -r requirements.txt
- name: Run tests
run: |
pytest
- name: Lint with pylint
run: |
pylint custom_components/ha_text_ai/*.py
+3
View File
@@ -0,0 +1,3 @@
pytest
pytest-asyncio
homeassistant
+8
View File
@@ -0,0 +1,8 @@
"""Common fixtures for tests."""
import pytest
from homeassistant.core import HomeAssistant
@pytest.fixture
def hass() -> HomeAssistant:
"""Return a Home Assistant instance for testing."""
return HomeAssistant()