forked from platypush/platypush
poll_seconds should not have a default value
This commit is contained in:
parent
bd8d4649c5
commit
c0ef9e2373
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ from platypush.plugins.gpio.sensor.mcp3008 import GpioSensorMcp3008Plugin
|
||||||
class SensorMcp3008Backend(Backend):
|
class SensorMcp3008Backend(Backend):
|
||||||
last_measurement = {}
|
last_measurement = {}
|
||||||
|
|
||||||
def __init__(self, poll_seconds=0.25, *args, **kwargs):
|
def __init__(self, poll_seconds, *args, **kwargs):
|
||||||
super().__init__(*args, **kwargs)
|
super().__init__(*args, **kwargs)
|
||||||
self.poll_seconds = poll_seconds
|
self.poll_seconds = poll_seconds
|
||||||
logging.info('Initialized MCP3008 analog sensors backend')
|
logging.info('Initialized MCP3008 analog sensors backend')
|
||||||
|
|
Loading…
Reference in a new issue