forked from platypush/platypush
Replaced deprecated missing
marshmallow parameter with load_default
This commit is contained in:
parent
7d90b274ae
commit
2893cb1cc4
1 changed files with 3 additions and 3 deletions
|
@ -50,7 +50,7 @@ class HidDeviceSchema(Schema):
|
||||||
|
|
||||||
class HidMonitoredDeviceSchema(HidDeviceSchema):
|
class HidMonitoredDeviceSchema(HidDeviceSchema):
|
||||||
notify_only_if_changed = fields.Boolean(
|
notify_only_if_changed = fields.Boolean(
|
||||||
missing=True,
|
load_default=True,
|
||||||
metadata={
|
metadata={
|
||||||
'description': 'If set to true (default), only changes in the '
|
'description': 'If set to true (default), only changes in the '
|
||||||
'values of the device will trigger events. So if you are e.g. '
|
'values of the device will trigger events. So if you are e.g. '
|
||||||
|
@ -60,7 +60,7 @@ class HidMonitoredDeviceSchema(HidDeviceSchema):
|
||||||
)
|
)
|
||||||
|
|
||||||
data_size = fields.Integer(
|
data_size = fields.Integer(
|
||||||
missing=64,
|
load_default=64,
|
||||||
metadata={
|
metadata={
|
||||||
'description': 'How many bytes should be read from the device on '
|
'description': 'How many bytes should be read from the device on '
|
||||||
'each iteration (default: 64)',
|
'each iteration (default: 64)',
|
||||||
|
@ -68,7 +68,7 @@ class HidMonitoredDeviceSchema(HidDeviceSchema):
|
||||||
)
|
)
|
||||||
|
|
||||||
poll_seconds = fields.Float(
|
poll_seconds = fields.Float(
|
||||||
missing=0,
|
load_default=0,
|
||||||
metadata={
|
metadata={
|
||||||
'description': 'How often we should wait before data reads '
|
'description': 'How often we should wait before data reads '
|
||||||
'(default: no wait)'
|
'(default: no wait)'
|
||||||
|
|
Loading…
Reference in a new issue