poll_seconds should not have a default value

This commit is contained in:
Fabio Manganiello 2018-04-29 23:58:33 +02:00
parent bd8d4649c5
commit c0ef9e2373

View file

@ -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')