Fix filter out nan filter

This commit is contained in:
Otto Winter 2018-06-04 20:47:15 +02:00
parent 6a823f5777
commit a07a7a87a2
No known key found for this signature in database
GPG key ID: DB66C0BE6013F97E

View file

@ -100,7 +100,7 @@ def setup_filter(config):
elif CONF_FILTER_OUT in config: elif CONF_FILTER_OUT in config:
yield FilterOutValueFilter.new(config[CONF_FILTER_OUT]) yield FilterOutValueFilter.new(config[CONF_FILTER_OUT])
elif CONF_FILTER_NAN in config: elif CONF_FILTER_NAN in config:
yield FilterOutNANFilter() yield FilterOutNANFilter.new()
elif CONF_SLIDING_WINDOW_MOVING_AVERAGE in config: elif CONF_SLIDING_WINDOW_MOVING_AVERAGE in config:
conf = config[CONF_SLIDING_WINDOW_MOVING_AVERAGE] conf = config[CONF_SLIDING_WINDOW_MOVING_AVERAGE]
yield SlidingWindowMovingAverageFilter.new(conf[CONF_WINDOW_SIZE], conf[CONF_SEND_EVERY]) yield SlidingWindowMovingAverageFilter.new(conf[CONF_WINDOW_SIZE], conf[CONF_SEND_EVERY])