mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 21:57:51 +00:00
Rename add entities function in Aurora (#117480)
This commit is contained in:
parent
bed31f302a
commit
72d873ce70
@ -13,10 +13,10 @@ from .entity import AuroraEntity
|
|||||||
async def async_setup_entry(
|
async def async_setup_entry(
|
||||||
hass: HomeAssistant,
|
hass: HomeAssistant,
|
||||||
entry: AuroraConfigEntry,
|
entry: AuroraConfigEntry,
|
||||||
async_add_entries: AddEntitiesCallback,
|
async_add_entities: AddEntitiesCallback,
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Set up the binary_sensor platform."""
|
"""Set up the binary_sensor platform."""
|
||||||
async_add_entries(
|
async_add_entities(
|
||||||
[
|
[
|
||||||
AuroraSensor(
|
AuroraSensor(
|
||||||
coordinator=entry.runtime_data,
|
coordinator=entry.runtime_data,
|
||||||
|
@ -14,11 +14,11 @@ from .entity import AuroraEntity
|
|||||||
async def async_setup_entry(
|
async def async_setup_entry(
|
||||||
hass: HomeAssistant,
|
hass: HomeAssistant,
|
||||||
entry: AuroraConfigEntry,
|
entry: AuroraConfigEntry,
|
||||||
async_add_entries: AddEntitiesCallback,
|
async_add_entities: AddEntitiesCallback,
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Set up the sensor platform."""
|
"""Set up the sensor platform."""
|
||||||
|
|
||||||
async_add_entries(
|
async_add_entities(
|
||||||
[
|
[
|
||||||
AuroraSensor(
|
AuroraSensor(
|
||||||
coordinator=entry.runtime_data,
|
coordinator=entry.runtime_data,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user