removed redundant returns

This commit is contained in:
tomaae 2019-12-12 23:14:14 +01:00
parent 0f2cb6d455
commit 9be5a15c54
6 changed files with 0 additions and 56 deletions

View file

@ -49,9 +49,7 @@ async def async_setup_entry(hass, config_entry, async_add_entities):
mikrotik_controller.listeners.append(
async_dispatcher_connect(hass, mikrotik_controller.signal_update, update_controller)
)
update_controller()
return
# ---------------------------
@ -75,8 +73,6 @@ def update_items(inst, mikrotik_controller, async_add_entities, sensors):
if new_sensors:
async_add_entities(new_sensors, True)
return
class MikrotikControllerBinarySensor(BinarySensorDevice):
"""Define an Mikrotik Controller Binary Sensor."""
@ -129,12 +125,10 @@ class MikrotikControllerBinarySensor(BinarySensorDevice):
async def async_update(self):
"""Synchronize state with controller."""
return
async def async_added_to_hass(self):
"""Port entity created."""
_LOGGER.debug("New sensor %s (%s)", self._inst, self._sensor)
return
@property
def is_on(self):