From 36c0478c4a22744a33bd289ec78a1f5a64687144 Mon Sep 17 00:00:00 2001 From: Milan Meulemans Date: Thu, 5 Aug 2021 09:16:47 +0200 Subject: [PATCH] Activate mypy for Reddit (#53949) --- homeassistant/components/reddit/sensor.py | 2 +- mypy.ini | 3 --- script/hassfest/mypy_config.py | 1 - 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/homeassistant/components/reddit/sensor.py b/homeassistant/components/reddit/sensor.py index 1e755b950bf..7472ad42301 100644 --- a/homeassistant/components/reddit/sensor.py +++ b/homeassistant/components/reddit/sensor.py @@ -91,7 +91,7 @@ class RedditSensor(SensorEntity): self._limit = limit self._sort_by = sort_by - self._subreddit_data = [] + self._subreddit_data: list = [] @property def name(self): diff --git a/mypy.ini b/mypy.ini index 07e56f29409..b1cd49b82bb 100644 --- a/mypy.ini +++ b/mypy.ini @@ -1608,9 +1608,6 @@ ignore_errors = true [mypy-homeassistant.components.rachio.*] ignore_errors = true -[mypy-homeassistant.components.reddit.*] -ignore_errors = true - [mypy-homeassistant.components.ring.*] ignore_errors = true diff --git a/script/hassfest/mypy_config.py b/script/hassfest/mypy_config.py index b795e6c03c8..9ec3a3b2fff 100644 --- a/script/hassfest/mypy_config.py +++ b/script/hassfest/mypy_config.py @@ -132,7 +132,6 @@ IGNORED_MODULES: Final[list[str]] = [ "homeassistant.components.profiler.*", "homeassistant.components.proxmoxve.*", "homeassistant.components.rachio.*", - "homeassistant.components.reddit.*", "homeassistant.components.ring.*", "homeassistant.components.rpi_power.*", "homeassistant.components.ruckus_unleashed.*",