Fix review requests for BleBox support from #35370 (#35786)

* fix review requests from #35370

* fix pylint W0621 (redefined-outer-name)
This commit is contained in:
gadgetmobile authored and GitHub committed 2020-05-18 22:30:15 +02:00
1 parent 8258fa515d
commit 93fddbed2b
9 files changed
+32 -24

No files matched your search

+4 -2
View File
@@ -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):