1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Raise issue "does not support platform setup" (#93585)

* Raise issue on platform missing

* Modify issue

* Remove deprecation

* Fix strings

* Strings

* Last strings

* strings to common
This commit is contained in:
G Johansson
2023-05-28 21:53:32 +02:00
committed by GitHub
parent 68c646be40
commit c6feb30c31
29 changed files with 184 additions and 1 deletions

View File

@@ -44,6 +44,7 @@ from . import (
from .device_registry import DeviceRegistry
from .entity_registry import EntityRegistry, RegistryEntryDisabler, RegistryEntryHider
from .event import async_call_later, async_track_time_interval
from .issue_registry import IssueSeverity, async_create_issue
from .typing import ConfigType, DiscoveryInfoType
if TYPE_CHECKING:
@@ -211,6 +212,19 @@ class EntityPlatform:
self.platform_name,
self.domain,
)
async_create_issue(
self.hass,
self.domain,
f"platform_integration_no_support_{self.domain}_{self.platform_name}",
is_fixable=False,
severity=IssueSeverity.ERROR,
translation_key="platform_integration_no_support",
translation_placeholders={
"domain": self.domain,
"platform": self.platform_name,
},
)
return
@callback