From 5bbb06cdba16e0342e24c0aac0328cb43d90118e Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Tue, 29 Nov 2022 19:07:15 -0500 Subject: [PATCH] Fix disallowed characters for performance data --- check_home_assistant_state.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_home_assistant_state.py b/check_home_assistant_state.py index 1c1aa8c..6da1237 100755 --- a/check_home_assistant_state.py +++ b/check_home_assistant_state.py @@ -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"]