From 744acf47ae0683c42bc50c7cae7296b5106eed03 Mon Sep 17 00:00:00 2001 From: Tsvi Mostovicz Date: Mon, 11 Mar 2019 13:46:00 +0200 Subject: [PATCH] Fix tests - was passing wrong args to time/date --- homeassistant/components/input_datetime/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/input_datetime/__init__.py b/homeassistant/components/input_datetime/__init__.py index 1fb2eeee1d7..af0a28aa34a 100644 --- a/homeassistant/components/input_datetime/__init__.py +++ b/homeassistant/components/input_datetime/__init__.py @@ -124,11 +124,11 @@ class InputDatetime(RestoreEntity): if not self.has_date: if not restore_val: - restore_val = DEFAULT_VALUE.split()[0] + restore_val = DEFAULT_VALUE.split()[1] self._current_datetime = dt_util.parse_time(restore_val) elif not self.has_time: if not restore_val: - restore_val = DEFAULT_VALUE.split()[1] + restore_val = DEFAULT_VALUE.split()[0] self._current_datetime = dt_util.parse_date(restore_val) else: if not restore_val: