Something wrong with week number and date

There is something wrong with week number and date.
Currently its week 44, November 4
But sensors is showing:

sensor.dates 28 october 2018 friendly_name: Datum
sensor.weekofyear 43 friendly_name: Veckonummer

Sensor:

   - platform: template
    sensors:
     weekofyear:
       friendly_name: 'Week number'
       value_template: "{{ now().strftime('%W') }}"
     weekday:
       friendly_name: 'Weekday'
       value_template: "{{ now().strftime('%A') }}"
     dates: 
       friendly_name: 'Date'
       value_template: >
          {% set months = ["january", "february", "march", "april", "may", "juny", "july", "august", "september", "october", "november", "december"] %}
          {% set month = months[now().strftime('%m') | int -1] %}  
          {{ now().strftime('%d') + ' ' + month + ' '+ now().strftime('%Y') }}

From the 0.81 Release notes:

Template sensors will no longer auto update if we can’t find relevant entities in the template. You’ll want to review your template sensors and consider adding relevant entity_id entries or use the new homeassistant.update_entity service.

1 Like

In automations like this?

- alias: "update sensors"
  trigger:
  - platform: time
    at: '00:10:00'
  action:
  - service: homeassistant.update_entity
    entity_id: 
        - sensor.dates
        - sensor.weekofyear