Cleaning up my config files

Getting these in my log with now indication what files or lines they are in. Any ideas what is going on, best I can tell all my automation is working.

16-11-25 07:11:56 homeassistant.components.sensor.template: UndefinedError: ‘None’ has no attribute ‘attributes’
16-11-25 07:11:56 homeassistant.components.sensor.template: UndefinedError: ‘None’ has no attribute ‘attributes’
16-11-25 07:11:56 homeassistant.components.sensor.template: UndefinedError: ‘None’ has no attribute ‘attributes’
16-11-25 07:11:56 homeassistant.components.sensor.template: UndefinedError: ‘None’ has no attribute ‘attributes’
16-11-25 07:11:56 homeassistant.components.sensor.template: UndefinedError: ‘None’ has no attribute ‘attributes’
16-11-25 07:11:56 homeassistant.components.sensor.template: UndefinedError: ‘None’ has no attribute ‘attributes’
16-11-25 07:11:56 homeassistant.components.sensor.template: UndefinedError: ‘None’ has no attribute ‘attributes’
16-11-25 07:11:56 homeassistant.components.sensor.template: UndefinedError: ‘None’ has no attribute ‘attributes’
16-11-25 07:11:56 homeassistant.components.sensor.template: UndefinedError: ‘None’ has no attribute ‘attributes’
16-11-25 07:11:56 homeassistant.components.sensor.template: UndefinedError: ‘None’ has no attribute ‘attributes’
16-11-25 07:11:56 homeassistant.components.sensor.template: UndefinedError: ‘None’ has no attribute ‘attributes’
16-11-25 07:12:05 homeassistant.bootstrap: Invalid config for [automation]: required key not provided @ data[‘action’]. Got None
required key not provided @ data[‘trigger’]. Got None. (See ?:?). Please check the docs at https://home-assistant.io/components/automation/

You can test your config with help of this page

Maybe that gives you more information

Regarding “None’ has no attribute 'attributes”, if you use some template sensor you should keep in mind that the folowing templates can give you similar results but will behave differently, e. g.:

  1. states.sensor.temperature returns the state object for sensor.temperature.
  2. states('device_tracker.paulus') will return the state string (not the object) of the given entity or unknown if it doesn’t exist.

Thrrefore, the first example might give you an error that you have in your log.
The second one will not do that.