mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 14:17:45 +00:00
Add entity category to cloud (#57747)
This commit is contained in:
parent
4417ffb407
commit
12b6922875
@ -5,6 +5,7 @@ from homeassistant.components.binary_sensor import (
|
|||||||
DEVICE_CLASS_CONNECTIVITY,
|
DEVICE_CLASS_CONNECTIVITY,
|
||||||
BinarySensorEntity,
|
BinarySensorEntity,
|
||||||
)
|
)
|
||||||
|
from homeassistant.const import ENTITY_CATEGORY_DIAGNOSTIC
|
||||||
from homeassistant.helpers.dispatcher import async_dispatcher_connect
|
from homeassistant.helpers.dispatcher import async_dispatcher_connect
|
||||||
|
|
||||||
from .const import DISPATCHER_REMOTE_UPDATE, DOMAIN
|
from .const import DISPATCHER_REMOTE_UPDATE, DOMAIN
|
||||||
@ -28,6 +29,7 @@ class CloudRemoteBinary(BinarySensorEntity):
|
|||||||
_attr_device_class = DEVICE_CLASS_CONNECTIVITY
|
_attr_device_class = DEVICE_CLASS_CONNECTIVITY
|
||||||
_attr_should_poll = False
|
_attr_should_poll = False
|
||||||
_attr_unique_id = "cloud-remote-ui-connectivity"
|
_attr_unique_id = "cloud-remote-ui-connectivity"
|
||||||
|
_attr_entity_category = ENTITY_CATEGORY_DIAGNOSTIC
|
||||||
|
|
||||||
def __init__(self, cloud):
|
def __init__(self, cloud):
|
||||||
"""Initialize the binary sensor."""
|
"""Initialize the binary sensor."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user