Invalid config for [sensor]

I need help understanding what’s wrong with my configuration.
Error message:
Invalid config for [sensor]: offset 300 (default, optional) should be format ‘HH:MM’, ‘HH:MM:SS’ or ‘HH:MM:SS.F’ for dictionary value @ data[‘scan_interval’]. Got None. (See /config/configuration.yaml, line 39).

configuration.yaml:
sensor:

  • platform: pollenniva
    scan_interval: 300 (default, optional)
    state_as_string: false (default, optional, show states as strings as per STATES above)
    sensors:
    • city: Stockholm
      days_to_track: 3 (0-3, optional)
      allergens:
      • Gräs
      • Hassel
    • city: Östersund
      allergens:
      • Hassel

Sensor-file @ /config/custom_components/pollenniva/sensor.py

Do I need to paste sensor.py content for someone to understand what’s wrong?
Any help appreciated!

Is that really what’s in your configuration.yaml, with the parenthenticals like “(default, optional)” and “(0-3, optional)”? You’ll need to edit that. That’s the downside to just copying and pasting.

Thx @rccoleman,
Now I get the error
Platform error sensor.pollenniva - Integration ‘pollenniva’ not found.
I have my sensor.py here:
/config/custom_components/pollenniva/sensor.py

Any ideas?