From 94f06f86cf426bd5469ee19f615c317dfcb045a8 Mon Sep 17 00:00:00 2001
From: jan iversen <jancasacondor@gmail.com>
Date: Thu, 16 Sep 2021 19:05:08 +0200
Subject: [PATCH] Activate mypy for gpmdp. (#55967)

---
 homeassistant/components/gpmdp/media_player.py | 5 ++++-
 mypy.ini                                       | 3 ---
 script/hassfest/mypy_config.py                 | 1 -
 3 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/homeassistant/components/gpmdp/media_player.py b/homeassistant/components/gpmdp/media_player.py
index 5680eb75500..0a26a514323 100644
--- a/homeassistant/components/gpmdp/media_player.py
+++ b/homeassistant/components/gpmdp/media_player.py
@@ -1,8 +1,11 @@
 """Support for Google Play Music Desktop Player."""
+from __future__ import annotations
+
 import json
 import logging
 import socket
 import time
+from typing import Any
 
 import voluptuous as vol
 from websocket import _exceptions, create_connection
@@ -28,7 +31,7 @@ from homeassistant.const import (
 import homeassistant.helpers.config_validation as cv
 from homeassistant.util.json import load_json, save_json
 
-_CONFIGURING = {}
+_CONFIGURING: dict[str, Any] = {}
 _LOGGER = logging.getLogger(__name__)
 
 DEFAULT_HOST = "localhost"
diff --git a/mypy.ini b/mypy.ini
index 22c50199acd..e8524d236b3 100644
--- a/mypy.ini
+++ b/mypy.ini
@@ -1370,9 +1370,6 @@ ignore_errors = true
 [mypy-homeassistant.components.google_assistant.*]
 ignore_errors = true
 
-[mypy-homeassistant.components.gpmdp.*]
-ignore_errors = true
-
 [mypy-homeassistant.components.gree.*]
 ignore_errors = true
 
diff --git a/script/hassfest/mypy_config.py b/script/hassfest/mypy_config.py
index 53513a9c37e..fc6b12ac70e 100644
--- a/script/hassfest/mypy_config.py
+++ b/script/hassfest/mypy_config.py
@@ -38,7 +38,6 @@ IGNORED_MODULES: Final[list[str]] = [
     "homeassistant.components.geniushub.*",
     "homeassistant.components.glances.*",
     "homeassistant.components.google_assistant.*",
-    "homeassistant.components.gpmdp.*",
     "homeassistant.components.gree.*",
     "homeassistant.components.growatt_server.*",
     "homeassistant.components.habitica.*",
-- 
GitLab