Time of Day Sensor Not Loading from YAML Config

I have been using this code for some time. It no longer seems to load the binary sensor. Could someone else please test to see if this works in their configuration? I am running the most current 2022.9.7.

binary_sensor:
  - platform: tod
    name: Night
    after: sunset
    before: sunrise

There is nothing in my logs to indicate any problem.

Solved. I found a duplicate binary_sensor configuration for a trend sensor. I merged the two chunks of code into a single binary_sensor header.