mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 07:07:28 +00:00
Remove type checking of config entry in Mastodon (#123467)
Remove type checking of configentry
This commit is contained in:
parent
aee5d5126f
commit
e6e985af24
@ -3,7 +3,6 @@
|
|||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
from typing import TYPE_CHECKING
|
|
||||||
|
|
||||||
from mastodon.Mastodon import Mastodon, MastodonError
|
from mastodon.Mastodon import Mastodon, MastodonError
|
||||||
|
|
||||||
@ -38,9 +37,6 @@ class MastodonData:
|
|||||||
|
|
||||||
type MastodonConfigEntry = ConfigEntry[MastodonData]
|
type MastodonConfigEntry = ConfigEntry[MastodonData]
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
|
||||||
from . import MastodonConfigEntry
|
|
||||||
|
|
||||||
|
|
||||||
async def async_setup_entry(hass: HomeAssistant, entry: MastodonConfigEntry) -> bool:
|
async def async_setup_entry(hass: HomeAssistant, entry: MastodonConfigEntry) -> bool:
|
||||||
"""Set up Mastodon from a config entry."""
|
"""Set up Mastodon from a config entry."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user