From 9785acee0dfbae1117a508d252f72b6b0604139a Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 23 Dec 2024 17:00:18 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/pre-commit/pre-commit-hooks: v4.5.0 → v5.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.5.0...v5.0.0) - [github.com/astral-sh/ruff-pre-commit: v0.1.6 → v0.8.4](https://github.com/astral-sh/ruff-pre-commit/compare/v0.1.6...v0.8.4) - [github.com/pre-commit/mirrors-mypy: v1.7.1 → v1.14.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.7.1...v1.14.0) --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 356bed2..265c77b 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.8.4 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.14.0 hooks: - id: mypy additional_dependencies: [types-attrs] From 6b373edc88606ccf1a71c1339ad4b279162204ac Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 23 Dec 2024 17:00:27 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- custom_components/upnp_availability/__init__.py | 1 + custom_components/upnp_availability/binary_sensor.py | 1 + custom_components/upnp_availability/config_flow.py | 1 + 3 files changed, 3 insertions(+) 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