Went from .66 to 75.3 and {{ states.sensor.time.state }} no longer works as a time stamp

Pretty much self explained in the subject. I have an automation that pulls a script up. The script tells me when my front door has been opened or closed, and it had a time stamp along side it. The message still gets sent but the time stamp I used disappears.

front_door:
  sequence:
    - service: notify.knotty
      data_template:
        message: >
          {% if is_state('binary_sensor.door_window_sensor_158d0001f49c83', 'on') %}
            Door has been opened at {{ states.sensor.time.state }}.
          {% else %}
            Door has been closed at {{ states.sensor.time.state }}.
          {% endif %}

I used to get messages like

“Door has been opened at 19:30”

now I get:

“Door has been opened at”

Any way to reinstate the time stamp?

Solved:

{{ states('sensor.time') }}