It would help if you included the sensor config that isn’t working.
If you are using a template, as per the docs, you must use resource_template:
not resource:
. My guess is that you haven’t done that, but without your code, it’s just a guess.
resource_template: "https://aa.usno.navy.mil/api/seasons?year={{ now().year }}"