forked from home-assistant/core
Add entity category to elkm1 (#58364)
This commit is contained in:
@@ -9,7 +9,7 @@ from elkm1_lib.util import pretty_const, username
|
|||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.components.sensor import SensorEntity
|
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.exceptions import HomeAssistantError
|
||||||
from homeassistant.helpers import entity_platform
|
from homeassistant.helpers import entity_platform
|
||||||
|
|
||||||
@@ -158,6 +158,8 @@ class ElkKeypad(ElkSensor):
|
|||||||
class ElkPanel(ElkSensor):
|
class ElkPanel(ElkSensor):
|
||||||
"""Representation of an Elk-M1 Panel."""
|
"""Representation of an Elk-M1 Panel."""
|
||||||
|
|
||||||
|
_attr_entity_category = ENTITY_CATEGORY_DIAGNOSTIC
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def icon(self):
|
def icon(self):
|
||||||
"""Icon to use in the frontend."""
|
"""Icon to use in the frontend."""
|
||||||
|
Reference in New Issue
Block a user