Fix disallowed characters for performance data
This commit is contained in:
parent
3cba565be7
commit
5bbb06cdba
@ -64,7 +64,7 @@ class Entities(nagiosplugin.Resource):
|
|||||||
name = (
|
name = (
|
||||||
state["attributes"]
|
state["attributes"]
|
||||||
.get("friendly_name", state["entity_id"])
|
.get("friendly_name", state["entity_id"])
|
||||||
.translate({ord(c): "_" for c in "'-"})
|
.translate({ord(c): "_" for c in "'="})
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
name = state["entity_id"]
|
name = state["entity_id"]
|
||||||
|
Loading…
Reference in New Issue
Block a user