mirror of
https://github.com/home-assistant/core.git
synced 2025-07-28 15:47:12 +00:00
Mark Integration with @final (#142057)
This commit is contained in:
parent
6fbee5c2e3
commit
feff5355c8
@ -18,7 +18,7 @@ import pathlib
|
|||||||
import sys
|
import sys
|
||||||
import time
|
import time
|
||||||
from types import ModuleType
|
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 (
|
from awesomeversion import (
|
||||||
AwesomeVersion,
|
AwesomeVersion,
|
||||||
@ -646,6 +646,7 @@ def async_register_preload_platform(hass: HomeAssistant, platform_name: str) ->
|
|||||||
preload_platforms.append(platform_name)
|
preload_platforms.append(platform_name)
|
||||||
|
|
||||||
|
|
||||||
|
@final # Final to allow direct checking of the type instead of using isinstance
|
||||||
class Integration:
|
class Integration:
|
||||||
"""An integration in Home Assistant."""
|
"""An integration in Home Assistant."""
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user