mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 22:27:07 +00:00
Fix demo valve platform to use AddConfigEntryEntitiesCallback (#139602)
This commit is contained in:
parent
89b655c192
commit
cc8ed2c228
@ -8,7 +8,7 @@ from typing import Any
|
|||||||
from homeassistant.components.valve import ValveEntity, ValveEntityFeature, ValveState
|
from homeassistant.components.valve import ValveEntity, ValveEntityFeature, ValveState
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
from homeassistant.helpers.entity_platform import AddConfigEntryEntitiesCallback
|
||||||
|
|
||||||
OPEN_CLOSE_DELAY = 2 # Used to give a realistic open/close experience in frontend
|
OPEN_CLOSE_DELAY = 2 # Used to give a realistic open/close experience in frontend
|
||||||
|
|
||||||
@ -16,7 +16,7 @@ OPEN_CLOSE_DELAY = 2 # Used to give a realistic open/close experience in fronte
|
|||||||
async def async_setup_entry(
|
async def async_setup_entry(
|
||||||
hass: HomeAssistant,
|
hass: HomeAssistant,
|
||||||
config_entry: ConfigEntry,
|
config_entry: ConfigEntry,
|
||||||
async_add_entities: AddEntitiesCallback,
|
async_add_entities: AddConfigEntryEntitiesCallback,
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Set up the Demo config entry."""
|
"""Set up the Demo config entry."""
|
||||||
async_add_entities(
|
async_add_entities(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user