That’s the Jinja version of float. Float has been overridden in the HA environment. You need to provide a default. Please don’t link to that float anymore. Thanks.
The docs will be updated when it turns into an error. Currently this is the docs section for it and the current docs are correct but they do not mention a warning. In 2021.12 the docs will be updated to reflect the requirement for default. Also, seeing that you are decent at templates, you’ll realize that default isn’t 100% needed when using these filters. It’s only needed when the conversion might fail. I.e. this will never fail {{ '1' | float }} where {{ states('xyz.abc') | float }} may fail if the entity is unavailable or unknown. I’ve been just telling template novices to use it everywhere because they may not understand that difference.
It’s an improvement so you can now detect a failed conversion if you want. Before you couldn’t. This was put into place because one of the largest issues with energy and statistics is when sensors drop to zero instead of going unavailable. This is so that people can catch unavailable and properly project it to their template sensors, rest sensors, and any other sensors that use templates.
Ok, it is great to warn users. Really useful. I didn’t realize this threat for a long time. But a warning in docs and in the logs looks like a safer option than failing to reender.