From c0ef9e2373df1dba0bd858bad97c2ceae15867ba Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sun, 29 Apr 2018 23:58:33 +0200 Subject: [PATCH] poll_seconds should not have a default value --- platypush/backend/sensor/mcp3008.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platypush/backend/sensor/mcp3008.py b/platypush/backend/sensor/mcp3008.py index ab009f43f..4e2ed3334 100644 --- a/platypush/backend/sensor/mcp3008.py +++ b/platypush/backend/sensor/mcp3008.py @@ -10,7 +10,7 @@ from platypush.plugins.gpio.sensor.mcp3008 import GpioSensorMcp3008Plugin class SensorMcp3008Backend(Backend): last_measurement = {} - def __init__(self, poll_seconds=0.25, *args, **kwargs): + def __init__(self, poll_seconds, *args, **kwargs): super().__init__(*args, **kwargs) self.poll_seconds = poll_seconds logging.info('Initialized MCP3008 analog sensors backend')