From 20b7125620d1ba6daf53756daea174c67636bec6 Mon Sep 17 00:00:00 2001 From: jan iversen Date: Wed, 18 Aug 2021 15:34:50 +0200 Subject: [PATCH] Activate mypy for Panasonic_viera (#54547) --- homeassistant/components/panasonic_viera/__init__.py | 2 +- homeassistant/components/panasonic_viera/config_flow.py | 2 +- mypy.ini | 3 --- script/hassfest/mypy_config.py | 1 - 4 files changed, 2 insertions(+), 6 deletions(-) diff --git a/homeassistant/components/panasonic_viera/__init__.py b/homeassistant/components/panasonic_viera/__init__.py index e187b7c18a5..ab63b535e80 100644 --- a/homeassistant/components/panasonic_viera/__init__.py +++ b/homeassistant/components/panasonic_viera/__init__.py @@ -1,7 +1,7 @@ """The Panasonic Viera integration.""" from functools import partial import logging -from urllib.request import HTTPError, URLError +from urllib.error import HTTPError, URLError from panasonic_viera import EncryptionRequired, Keys, RemoteControl, SOAPError import voluptuous as vol diff --git a/homeassistant/components/panasonic_viera/config_flow.py b/homeassistant/components/panasonic_viera/config_flow.py index 42400e7348c..d1c6461de21 100644 --- a/homeassistant/components/panasonic_viera/config_flow.py +++ b/homeassistant/components/panasonic_viera/config_flow.py @@ -1,7 +1,7 @@ """Config flow for Panasonic Viera TV integration.""" from functools import partial import logging -from urllib.request import URLError +from urllib.error import URLError from panasonic_viera import TV_TYPE_ENCRYPTED, RemoteControl, SOAPError import voluptuous as vol diff --git a/mypy.ini b/mypy.ini index 3108f73a49e..cb6adf5d62e 100644 --- a/mypy.ini +++ b/mypy.ini @@ -1550,9 +1550,6 @@ ignore_errors = true [mypy-homeassistant.components.ozw.*] ignore_errors = true -[mypy-homeassistant.components.panasonic_viera.*] -ignore_errors = true - [mypy-homeassistant.components.philips_js.*] ignore_errors = true diff --git a/script/hassfest/mypy_config.py b/script/hassfest/mypy_config.py index 6a863355afc..73081ddfc53 100644 --- a/script/hassfest/mypy_config.py +++ b/script/hassfest/mypy_config.py @@ -109,7 +109,6 @@ IGNORED_MODULES: Final[list[str]] = [ "homeassistant.components.onvif.*", "homeassistant.components.ovo_energy.*", "homeassistant.components.ozw.*", - "homeassistant.components.panasonic_viera.*", "homeassistant.components.philips_js.*", "homeassistant.components.ping.*", "homeassistant.components.pioneer.*",