* fix review requests from #35370 * fix pylint W0621 (redefined-outer-name)
This commit is contained in:
parent
8258fa515d
commit
93fddbed2b
9 changed files with 32 additions and 24 deletions
|
@ -6,10 +6,12 @@ from . import BleBoxEntity, create_blebox_entities
|
|||
from .const import BLEBOX_TO_HASS_DEVICE_CLASSES, BLEBOX_TO_UNIT_MAP
|
||||
|
||||
|
||||
async def async_setup_entry(hass, config_entry, async_add):
|
||||
async def async_setup_entry(hass, config_entry, async_add_entities):
|
||||
"""Set up a BleBox entry."""
|
||||
|
||||
create_blebox_entities(hass, config_entry, async_add, BleBoxSensorEntity, "sensors")
|
||||
create_blebox_entities(
|
||||
hass, config_entry, async_add_entities, BleBoxSensorEntity, "sensors"
|
||||
)
|
||||
|
||||
|
||||
class BleBoxSensorEntity(BleBoxEntity, Entity):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue