Enable mccabe complexity checks in flake8 (#49616)
Co-authored-by: Franck Nijhof <git@frenck.dev>
This commit is contained in:
parent
9f8e683ae3
commit
3fa8ffa731
42 changed files with 51 additions and 40 deletions
|
@ -132,7 +132,7 @@ class GlancesSensor(SensorEntity):
|
|||
self.unsub_update()
|
||||
self.unsub_update = None
|
||||
|
||||
async def async_update(self):
|
||||
async def async_update(self): # noqa: C901
|
||||
"""Get the latest data from REST API."""
|
||||
value = self.glances_data.api.data
|
||||
if value is None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue