From 2acc6225c4127a15da2154517b84d657536d4ae1 Mon Sep 17 00:00:00 2001 From: Andre Basche Date: Mon, 24 Jul 2023 01:56:15 +0200 Subject: [PATCH] Fix failed build --- custom_components/hon/fan.py | 1 - custom_components/hon/hon.py | 4 ++-- custom_components/hon/typedefs.py | 1 - scripts/generate_translation.py | 1 - 4 files changed, 2 insertions(+), 5 deletions(-) diff --git a/custom_components/hon/fan.py b/custom_components/hon/fan.py index a9f3913..f51edc8 100644 --- a/custom_components/hon/fan.py +++ b/custom_components/hon/fan.py @@ -20,7 +20,6 @@ from pyhon.parameter.range import HonParameterRange from .const import DOMAIN from .hon import HonEntity -from .typedefs import HonEntityDescription _LOGGER = logging.getLogger(__name__) diff --git a/custom_components/hon/hon.py b/custom_components/hon/hon.py index 1ddfe41..4b88aa6 100644 --- a/custom_components/hon/hon.py +++ b/custom_components/hon/hon.py @@ -3,9 +3,9 @@ import logging from contextlib import suppress from datetime import timedelta from pathlib import Path -from typing import Optional, Any, TypeVar +from typing import Optional, Any -import pkg_resources +import pkg_resources # type: ignore[import, unused-ignore] from homeassistant.config_entries import ConfigEntry from homeassistant.core import callback from homeassistant.helpers.entity import DeviceInfo diff --git a/custom_components/hon/typedefs.py b/custom_components/hon/typedefs.py index b47361b..4410488 100644 --- a/custom_components/hon/typedefs.py +++ b/custom_components/hon/typedefs.py @@ -92,4 +92,3 @@ T = TypeVar( SelectEntityDescription, NumberEntityDescription, ) - diff --git a/scripts/generate_translation.py b/scripts/generate_translation.py index e562780..9106dae 100755 --- a/scripts/generate_translation.py +++ b/scripts/generate_translation.py @@ -8,7 +8,6 @@ from pathlib import Path from pyhon import HonAPI - if __name__ == "__main__": sys.path.insert(0, str(Path(__file__).parent.parent))