mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
Add entity category to elkm1 (#58364)
This commit is contained in:
parent
837e343c56
commit
80b12346d8
@ -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."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user