cc_power_state_change: improve TypeError messages

Include the value that was found to be invalid in the error message.