mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 05:05:09 +02:00
Fix tests - was passing wrong args to time/date
This commit is contained in:
@@ -124,11 +124,11 @@ class InputDatetime(RestoreEntity):
|
|||||||
|
|
||||||
if not self.has_date:
|
if not self.has_date:
|
||||||
if not restore_val:
|
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)
|
self._current_datetime = dt_util.parse_time(restore_val)
|
||||||
elif not self.has_time:
|
elif not self.has_time:
|
||||||
if not restore_val:
|
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)
|
self._current_datetime = dt_util.parse_date(restore_val)
|
||||||
else:
|
else:
|
||||||
if not restore_val:
|
if not restore_val:
|
||||||
|
Reference in New Issue
Block a user