PEP8 adaptions

This commit is contained in:
Dirk Alders 2021-10-14 10:08:58 +02:00
parent 6ab2629fb1
commit 2ffcdf2d59

3
dht.py
View File

@ -18,6 +18,7 @@ except ImportError:
else: else:
from . import DEBUG from . import DEBUG
class dht_22(background_task): class dht_22(background_task):
RUN_SLEEP_TIME = 4.0 RUN_SLEEP_TIME = 4.0
MIN_REFRESH_RATE = RUN_SLEEP_TIME MIN_REFRESH_RATE = RUN_SLEEP_TIME
@ -52,8 +53,6 @@ class dht_22(background_task):
self.close() self.close()
else: else:
logger.debug("DHT-Communication failed: Gradient to high. Ignoring data %s!", repr(data)) logger.debug("DHT-Communication failed: Gradient to high. Ignoring data %s!", repr(data))
def __dht_data_transmission__(self): def __dht_data_transmission__(self):
if not DEBUG: if not DEBUG: