Enable mccabe complexity checks in flake8 (#49616)

Co-authored-by: Franck Nijhof <git@frenck.dev>
This commit is contained in:
J. Nick Koston 2021-04-25 00:38:40 -10:00 committed by GitHub
parent 9f8e683ae3
commit 3fa8ffa731
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
42 changed files with 51 additions and 40 deletions

View file

@ -333,7 +333,7 @@ class NetatmoSensor(NetatmoBase, SensorEntity):
return self._enabled_default
@callback
def async_update_callback(self):
def async_update_callback(self): # noqa: C901
"""Update the entity's state."""
if self._data is None:
if self._state is None: