Fix disallowed characters for performance data

This commit is contained in:
Adam Goldsmith 2022-11-29 19:07:15 -05:00
parent 3cba565be7
commit 5bbb06cdba

View File

@ -64,7 +64,7 @@ class Entities(nagiosplugin.Resource):
name = (
state["attributes"]
.get("friendly_name", state["entity_id"])
.translate({ord(c): "_" for c in "'-"})
.translate({ord(c): "_" for c in "'="})
)
else:
name = state["entity_id"]