From e6e985af24bda84bbcba548d32ad71c5044e1bcd Mon Sep 17 00:00:00 2001 From: Andrew Jackson Date: Fri, 9 Aug 2024 15:28:55 +0100 Subject: [PATCH] Remove type checking of config entry in Mastodon (#123467) Remove type checking of configentry --- homeassistant/components/mastodon/__init__.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/homeassistant/components/mastodon/__init__.py b/homeassistant/components/mastodon/__init__.py index 0a7c93911b5..3c305ca655b 100644 --- a/homeassistant/components/mastodon/__init__.py +++ b/homeassistant/components/mastodon/__init__.py @@ -3,7 +3,6 @@ from __future__ import annotations from dataclasses import dataclass -from typing import TYPE_CHECKING from mastodon.Mastodon import Mastodon, MastodonError @@ -38,9 +37,6 @@ class MastodonData: type MastodonConfigEntry = ConfigEntry[MastodonData] -if TYPE_CHECKING: - from . import MastodonConfigEntry - async def async_setup_entry(hass: HomeAssistant, entry: MastodonConfigEntry) -> bool: """Set up Mastodon from a config entry."""