Pylint 2 useless-return fixes (#15677)
This commit is contained in:
1 parent
95dc06cca6
commit
1c42caba76
9 files changed
-12
No files matched your search
@@ -187,7 +187,6 @@ class FritzBoxCallMonitor:
|
||||
line = response.split("\n", 1)[0]
|
||||
self._parse(line)
|
||||
time.sleep(1)
|
||||
return
|
||||
|
||||
def _parse(self, line):
|
||||
"""Parse the call information and set the sensor states."""
|
||||
|
||||
@@ -95,7 +95,6 @@ class ModemCalleridSensor(Entity):
|
||||
if self.modem:
|
||||
self.modem.close()
|
||||
self.modem = None
|
||||
return
|
||||
|
||||
def _incomingcallcallback(self, newstate):
|
||||
"""Handle new states."""
|
||||
@@ -117,4 +116,3 @@ class ModemCalleridSensor(Entity):
|
||||
elif newstate == self.modem.STATE_IDLE:
|
||||
self._state = STATE_IDLE
|
||||
self.schedule_update_ha_state()
|
||||
return
|
||||
Reference in new issue
Block a user