Add entity category to MyQ (#58377)
Co-authored-by: J. Nick Koston <nick@koston.org>pull/58343/head
parent
06008bc343
commit
a69416521e
|
@ -3,6 +3,7 @@ from homeassistant.components.binary_sensor import (
|
|||
DEVICE_CLASS_CONNECTIVITY,
|
||||
BinarySensorEntity,
|
||||
)
|
||||
from homeassistant.const import ENTITY_CATEGORY_DIAGNOSTIC
|
||||
|
||||
from . import MyQEntity
|
||||
from .const import DOMAIN, MYQ_COORDINATOR, MYQ_GATEWAY
|
||||
|
@ -26,6 +27,7 @@ class MyQBinarySensorEntity(MyQEntity, BinarySensorEntity):
|
|||
"""Representation of a MyQ gateway."""
|
||||
|
||||
_attr_device_class = DEVICE_CLASS_CONNECTIVITY
|
||||
_attr_entity_category = ENTITY_CATEGORY_DIAGNOSTIC
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
|
|
Loading…
Reference in New Issue