My 2017 Prius was totaled in an accident and I have the extra key.
This can be reprogrammed for the same year and model only.
Checked and they said smart keys only work for the same year and model.
Most likely it needs a battery but considering how much keys are I hate to throw it away.