Passing template data to the Pi-Hole integration's pi_hole.disable service

Hello

I am currently experiencing problems with passing templates as data to the pi_hole.disable service.

i have the following template

{{ states("input_select.pihole_time") }}

The state of “input_select.pihole_time” is a time string formatted as HH:MM:SS, eg 00:00:15

When calling the pi_hole.disable service with the following service data payload

duration: >-
  {{ states("input_select.pihole_time") }}

i get the following error:

offset {{ states(“input_select.pihole_time”) }} should be format ‘HH:MM’ or ‘HH:MM:SS’ for dictionary value @ data[‘duration’]

If i set the duration payload directly to 00:00:15 (the current state of the sensor) then everything works as expected

Considering the state is already formatted like this, i am at a loss on how to proceed from here.