Utility_meter doesn't seem to respect "tariff" option

Given this config:

- alias: Change Utility Tariffs on Weekends
  trigger:
    - platform: time
      at: '15:00:00'
    - platform: time
      at: '19:00:00'
  condition:
    - condition: 'time'
      weekday:
        - sat
        - sun
  action:
    - service: utility_meter.select_tariff
      tariff: peak
      entity_id:
        - utility_meter.daily_energy
        - utility_meter.monthly_energy
    - service: utility_meter.select_tariff
      entity_id:
        - utility_meter.daily_energy
        - utility_meter.monthly_energy
      tariff:
        - offpeak

When I validate my configuration, I get the following error:

Invalid config for [automation]: [tariff] is an invalid option for [automation]. Check: automation->action->0->tariff. (See /config/configuration.yaml, line 241). Please check the docs at Automation - Home Assistant

I tried doing the tariff both ways, but however I list out tariff, it always throws the same error.

It seems the only way to do this is to do the following (after reading automation docs):

- alias: Change Utility Tariffs on Weekends
  trigger:
    - platform: time
      at: '15:00:00'
    - platform: time
      at: '19:00:00'
  condition:
    - condition: 'time'
      weekday:
        - sat
        - sun
  action:
    - service: utility_meter.select_tariff
      data:
        entity_id:
          - utility_meter.daily_energy
          - utility_meter.monthly_energy
        tariff: peak
    - service: utility_meter.select_tariff
      data:
        entity_id:
          - utility_meter.daily_energy
          - utility_meter.monthly_energy
        tariff: offpeak

maybe the utility_meter doc can be updated to reflect this?