This sounds more like your card configuration is incorrect. Please share your attempted YAML configuration for the card. And please format it correctly for the forum as per: https://community.home-assistant.io/t/how-to-help-us-help-you-or-how-to-ask-a-good-question/114371#oneone-format-it-properly-16