Caller ID Announce issue

I have been trying

data: {
message: "Call from {{ state_attr('sensor.modem_callerid_ed4ac8c91cd73c3ddc783d7741affdb9', 'cid_name') }}"
}

Every time I use this code the alexa announces “None” then says the appropriate CID_Name — Why is that happening?