From 80b12346d8efc19c9d81346461cda41cf96cbba0 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sun, 24 Oct 2021 21:00:06 -1000 Subject: [PATCH] Add entity category to elkm1 (#58364) --- homeassistant/components/elkm1/sensor.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/elkm1/sensor.py b/homeassistant/components/elkm1/sensor.py index 30fe87103c7..b5bab021bca 100644 --- a/homeassistant/components/elkm1/sensor.py +++ b/homeassistant/components/elkm1/sensor.py @@ -9,7 +9,7 @@ from elkm1_lib.util import pretty_const, username import voluptuous as vol from homeassistant.components.sensor import SensorEntity -from homeassistant.const import ELECTRIC_POTENTIAL_VOLT +from homeassistant.const import ELECTRIC_POTENTIAL_VOLT, ENTITY_CATEGORY_DIAGNOSTIC from homeassistant.exceptions import HomeAssistantError from homeassistant.helpers import entity_platform @@ -158,6 +158,8 @@ class ElkKeypad(ElkSensor): class ElkPanel(ElkSensor): """Representation of an Elk-M1 Panel.""" + _attr_entity_category = ENTITY_CATEGORY_DIAGNOSTIC + @property def icon(self): """Icon to use in the frontend."""