Rename add entities function in Aurora (#117480)

This commit is contained in:
Joost Lekkerkerker 2024-05-15 09:27:19 +02:00 committed by GitHub
parent bed31f302a
commit 72d873ce70
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View file

@ -13,10 +13,10 @@ from .entity import AuroraEntity
async def async_setup_entry(
hass: HomeAssistant,
entry: AuroraConfigEntry,
async_add_entries: AddEntitiesCallback,
async_add_entities: AddEntitiesCallback,
) -> None:
"""Set up the binary_sensor platform."""
async_add_entries(
async_add_entities(
[
AuroraSensor(
coordinator=entry.runtime_data,

View file

@ -14,11 +14,11 @@ from .entity import AuroraEntity
async def async_setup_entry(
hass: HomeAssistant,
entry: AuroraConfigEntry,
async_add_entries: AddEntitiesCallback,
async_add_entities: AddEntitiesCallback,
) -> None:
"""Set up the sensor platform."""
async_add_entries(
async_add_entities(
[
AuroraSensor(
coordinator=entry.runtime_data,