diff --git a/src/components/ha-attributes.html b/src/components/ha-attributes.html index b4dd830700..d910834e2f 100644 --- a/src/components/ha-attributes.html +++ b/src/components/ha-attributes.html @@ -68,6 +68,7 @@ formatAttributeValue: function (stateObj, attribute) { var value = stateObj.attributes[attribute]; + if (value === null) return '-'; if (Array.isArray(value)) { return value.join(', '); }