diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f6bb31bc..11e0fecf 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,7 +15,7 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.7.1 + rev: v0.7.3 hooks: - id: ruff name: ruff unused imports diff --git a/src/HABApp/core/internals/event_bus_listener.py b/src/HABApp/core/internals/event_bus_listener.py index 790c1408..e0f682dd 100644 --- a/src/HABApp/core/internals/event_bus_listener.py +++ b/src/HABApp/core/internals/event_bus_listener.py @@ -1,4 +1,4 @@ -from typing import Any, TypeVar +from typing import Any from typing_extensions import override diff --git a/src/HABApp/core/items/base_item.py b/src/HABApp/core/items/base_item.py index 60d23637..3b1b9328 100644 --- a/src/HABApp/core/items/base_item.py +++ b/src/HABApp/core/items/base_item.py @@ -1,5 +1,3 @@ -from typing import TypeVar - from whenever import Instant from HABApp.core.const.hints import TYPE_EVENT_CALLBACK diff --git a/src/HABApp/mqtt/__init__.py b/src/HABApp/mqtt/__init__.py index 80c89ce0..674c41a9 100644 --- a/src/HABApp/mqtt/__init__.py +++ b/src/HABApp/mqtt/__init__.py @@ -6,4 +6,3 @@ import HABApp.mqtt.interface_async import HABApp.mqtt.interface_sync - diff --git a/tests/test_config/test_config.py b/tests/test_config/test_config.py index d3e50bc2..8c391487 100644 --- a/tests/test_config/test_config.py +++ b/tests/test_config/test_config.py @@ -1,14 +1,11 @@ import logging import re -import pytest -from pydantic import ValidationError - -from HABApp import CONFIG from easyconfig.yaml import yaml_safe +from tests.helpers import LogCollector +from HABApp import CONFIG from HABApp.config.models.mqtt import Subscribe -from tests.helpers import LogCollector def test_default_file() -> None: @@ -65,7 +62,7 @@ def test_default_file() -> None: ''' -def test_migrate(test_logs: LogCollector): +def test_migrate(test_logs: LogCollector) -> None: text = ''' subscribe: qos: 0 # Default QoS for subscribing