Templating in a transform: rotate

Can this be done in any way? I want something like this:

 - type: image
      action: none
      image: /local/arrows.png
        left: 11.7%
        top: 10%
        transform: rotate('${states(''sensor.dark_sky_wind_bearing'') +'''deg''}'')
      tap_action: none

I tried many varieties but none of them give the result I want. Mostly no image at all and adjusted rotate embedded in many quotes.
Is there a solution or am I trying to do something that is impossible?

**sensor.dark_sky_wind_baring** is already part of ‘type: ‘custom:config-template-card’’ at the beginning of this view and everything else in this view is working including templating of light colors