mirror of
https://github.com/tomaae/homeassistant-mikrotik_router.git
synced 2025-07-02 21:44:31 +02:00
removed redundant returns
This commit is contained in:
parent
0f2cb6d455
commit
9be5a15c54
6 changed files with 0 additions and 56 deletions
|
@ -92,7 +92,6 @@ async def async_setup_entry(hass, config_entry, async_add_entities):
|
|||
)
|
||||
|
||||
update_controller()
|
||||
return
|
||||
|
||||
|
||||
# ---------------------------
|
||||
|
@ -129,8 +128,6 @@ def update_items(inst, mikrotik_controller, async_add_entities, sensors):
|
|||
if new_sensors:
|
||||
async_add_entities(new_sensors, True)
|
||||
|
||||
return
|
||||
|
||||
|
||||
# ---------------------------
|
||||
# MikrotikControllerSensor
|
||||
|
@ -211,12 +208,10 @@ class MikrotikControllerSensor(Entity):
|
|||
|
||||
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
|
||||
|
||||
|
||||
# ---------------------------
|
||||
|
@ -255,4 +250,3 @@ class MikrotikControllerTrafficSensor(MikrotikControllerSensor):
|
|||
async def async_added_to_hass(self):
|
||||
"""Port entity created."""
|
||||
_LOGGER.debug("New sensor %s (%s %s)", self._inst, self._data['default-name'], self._sensor)
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue