Add entity category to elkm1 (#58364)

pull/58385/head
J. Nick Koston 2021-10-24 21:00:06 -10:00 committed by GitHub
parent 837e343c56
commit 80b12346d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -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."""