As I realized before, the service's templates are rendered by HA even before it gets sent to the integration. Therefore, if the template rendered an integer or anything that's not a string, it would try to render something that's not a string, and throw an error. This fixes that. (It was already fixed with other uses of the Template rendering, but I guess this one was the only one left out.)
As I realized before, the service's templates are rendered by HA even before it gets sent to the integration. Therefore, if the template rendered an integer or anything that's not a string, it would try to render something that's not a string, and throw an error. This fixes that. (It was already fixed with other uses of the Template rendering, but I guess this one was the only one left out.)