Waze_travel_time sensor not working with entity as destination

I’m trying to use “waze_travel_time” sensor with a destination taken from input_text but it is not working. if i replace it with hard coded destination (taken from the value in the input_text) it works fine.
according to Waze Travel Time - Home Assistant it should be supported - any idea?

sensor:
- platform: waze_travel_time
  name: To Custom Destination Realtime
  origin: sensor.lsx_location
  destination: input_text.custom_destination
  region: 'IL'
  vehicle_type: car

found the problem - it can only work with sensor. the sensor can use a template to get the input_text field. solved.