mirror of
https://github.com/home-assistant/core.git
synced 2025-08-03 04:35:11 +02:00
Mark Integration with @final (#142057)
This commit is contained in:
@@ -18,7 +18,7 @@ import pathlib
|
||||
import sys
|
||||
import time
|
||||
from types import ModuleType
|
||||
from typing import TYPE_CHECKING, Any, Literal, Protocol, TypedDict, cast
|
||||
from typing import TYPE_CHECKING, Any, Literal, Protocol, TypedDict, cast, final
|
||||
|
||||
from awesomeversion import (
|
||||
AwesomeVersion,
|
||||
@@ -646,6 +646,7 @@ def async_register_preload_platform(hass: HomeAssistant, platform_name: str) ->
|
||||
preload_platforms.append(platform_name)
|
||||
|
||||
|
||||
@final # Final to allow direct checking of the type instead of using isinstance
|
||||
class Integration:
|
||||
"""An integration in Home Assistant."""
|
||||
|
||||
|
Reference in New Issue
Block a user