Add entity category to MyQ (#58377)
Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
parent
06008bc343
commit
a69416521e
1 changed files with 2 additions and 0 deletions
|
@ -3,6 +3,7 @@ from homeassistant.components.binary_sensor import (
|
||||||
DEVICE_CLASS_CONNECTIVITY,
|
DEVICE_CLASS_CONNECTIVITY,
|
||||||
BinarySensorEntity,
|
BinarySensorEntity,
|
||||||
)
|
)
|
||||||
|
from homeassistant.const import ENTITY_CATEGORY_DIAGNOSTIC
|
||||||
|
|
||||||
from . import MyQEntity
|
from . import MyQEntity
|
||||||
from .const import DOMAIN, MYQ_COORDINATOR, MYQ_GATEWAY
|
from .const import DOMAIN, MYQ_COORDINATOR, MYQ_GATEWAY
|
||||||
|
@ -26,6 +27,7 @@ class MyQBinarySensorEntity(MyQEntity, BinarySensorEntity):
|
||||||
"""Representation of a MyQ gateway."""
|
"""Representation of a MyQ gateway."""
|
||||||
|
|
||||||
_attr_device_class = DEVICE_CLASS_CONNECTIVITY
|
_attr_device_class = DEVICE_CLASS_CONNECTIVITY
|
||||||
|
_attr_entity_category = ENTITY_CATEGORY_DIAGNOSTIC
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def name(self):
|
def name(self):
|
||||||
|
|
Loading…
Add table
Reference in a new issue