From a07a7a87a206e57dc28e040bb06f91c95a8536de Mon Sep 17 00:00:00 2001 From: Otto Winter Date: Mon, 4 Jun 2018 20:47:15 +0200 Subject: [PATCH] Fix filter out nan filter --- esphomeyaml/components/sensor/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphomeyaml/components/sensor/__init__.py b/esphomeyaml/components/sensor/__init__.py index b37bf774d3..deb55069cf 100644 --- a/esphomeyaml/components/sensor/__init__.py +++ b/esphomeyaml/components/sensor/__init__.py @@ -100,7 +100,7 @@ def setup_filter(config): elif CONF_FILTER_OUT in config: yield FilterOutValueFilter.new(config[CONF_FILTER_OUT]) elif CONF_FILTER_NAN in config: - yield FilterOutNANFilter() + yield FilterOutNANFilter.new() elif CONF_SLIDING_WINDOW_MOVING_AVERAGE in config: conf = config[CONF_SLIDING_WINDOW_MOVING_AVERAGE] yield SlidingWindowMovingAverageFilter.new(conf[CONF_WINDOW_SIZE], conf[CONF_SEND_EVERY])