diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 356bed2..36d34b0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.5.0 + rev: v5.0.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer @@ -11,14 +11,14 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.1.6 + rev: v0.9.9 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] - id: ruff-format - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.7.1 + rev: v1.15.0 hooks: - id: mypy additional_dependencies: [types-attrs] diff --git a/custom_components/upnp_availability/__init__.py b/custom_components/upnp_availability/__init__.py index 6f8948d..407e251 100644 --- a/custom_components/upnp_availability/__init__.py +++ b/custom_components/upnp_availability/__init__.py @@ -1,4 +1,5 @@ """The UPnP Availability integration.""" + import logging import voluptuous as vol diff --git a/custom_components/upnp_availability/binary_sensor.py b/custom_components/upnp_availability/binary_sensor.py index 2bd19a8..b62deab 100644 --- a/custom_components/upnp_availability/binary_sensor.py +++ b/custom_components/upnp_availability/binary_sensor.py @@ -2,6 +2,7 @@ This platform provides a binary sensor to track the availability of UPnP devices, based on ssdp:alive and ssdp:byebye notifications. """ + import asyncio import logging from collections import defaultdict diff --git a/custom_components/upnp_availability/config_flow.py b/custom_components/upnp_availability/config_flow.py index e9a19ec..fc72d24 100644 --- a/custom_components/upnp_availability/config_flow.py +++ b/custom_components/upnp_availability/config_flow.py @@ -1,4 +1,5 @@ """Config flow for UPnP Availability.""" + import logging from homeassistant.helpers import config_entry_flow