Ignore bogus measure?

Is there a way for HomeAssistant to skip/ignore a measure ? Sometimes the json returned by some power meters contain a wildly wrong datapoint and I don’t know how to stop those from messing up the graphs :
(no there’s no 50kW load in my son’s bedroom)
The data comes from a Rest sensor if that can help.