Fix disallowed characters for performance data
This commit is contained in:
parent
3cba565be7
commit
5bbb06cdba
@ -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"]
|
||||
|
Loading…
Reference in New Issue
Block a user