From 1f3ca46e1fb7c6f94f0f7b63cc4268b9ff5a073c Mon Sep 17 00:00:00 2001 From: Robbin Janssen Date: Sun, 17 May 2020 16:18:31 +0200 Subject: [PATCH] Fix time period --- custom_components/omnik_inverter/sensor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/omnik_inverter/sensor.py b/custom_components/omnik_inverter/sensor.py index e2bc5ee..bca980a 100644 --- a/custom_components/omnik_inverter/sensor.py +++ b/custom_components/omnik_inverter/sensor.py @@ -25,7 +25,7 @@ import re import pickle -VERSION = '1.4.0' +VERSION = '1.4.1' CONF_CACHE_POWER_TODAY = 'cache_power_today' CONF_USE_JSON = 'use_json' @@ -47,7 +47,7 @@ vol.Required(CONF_HOST): cv.string, vol.Optional(CONF_CACHE_POWER_TODAY, default=True): cv.boolean, vol.Optional(CONF_USE_JSON, default=False): cv.boolean, - vol.Optional(CONF_SCAN_INTERVAL, default=300): cv.time_period_seconds + vol.Optional(CONF_SCAN_INTERVAL, default=300): cv.time_period })