Remove setup_platform for demo (#100867)

This commit is contained in:
G Johansson 2023-10-15 23:12:41 +02:00 committed by GitHub
parent 24afbf3ae4
commit 3c3f512583
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
23 changed files with 149 additions and 168 deletions

View file

@ -19,16 +19,14 @@ from homeassistant.const import (
)
from homeassistant.core import HomeAssistant
from homeassistant.helpers.entity_platform import AddEntitiesCallback
from homeassistant.helpers.typing import ConfigType, DiscoveryInfoType
async def async_setup_platform(
async def async_setup_entry(
hass: HomeAssistant,
config: ConfigType,
config_entry: ConfigEntry,
async_add_entities: AddEntitiesCallback,
discovery_info: DiscoveryInfoType | None = None,
) -> None:
"""Set up the Demo alarm control panel platform."""
"""Set up the Demo config entry."""
async_add_entities(
[
ManualAlarm( # type:ignore[no-untyped-call]
@ -75,12 +73,3 @@ async def async_setup_platform(
)
]
)
async def async_setup_entry(
hass: HomeAssistant,
config_entry: ConfigEntry,
async_add_entities: AddEntitiesCallback,
) -> None:
"""Set up the Demo config entry."""
await async_setup_platform(hass, {}, async_add_entities)