* Refactor input_datetime. Keep the state as datetime, but format accordingly to has_time and has_date. * Use config dict for input_datetime. * Add tests. * Lint Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
* Refactor input_datetime. Keep the state as datetime, but format accordingly to has_time and has_date. * Use config dict for input_datetime. * Add tests. * Lint Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>