Add entity category to cloud (#57747)

pull/57752/head
Paulus Schoutsen 2021-10-14 23:17:40 -07:00 committed by GitHub
parent 4417ffb407
commit 12b6922875
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -5,6 +5,7 @@ from homeassistant.components.binary_sensor import (
DEVICE_CLASS_CONNECTIVITY,
BinarySensorEntity,
)
from homeassistant.const import ENTITY_CATEGORY_DIAGNOSTIC
from homeassistant.helpers.dispatcher import async_dispatcher_connect
from .const import DISPATCHER_REMOTE_UPDATE, DOMAIN
@ -28,6 +29,7 @@ class CloudRemoteBinary(BinarySensorEntity):
_attr_device_class = DEVICE_CLASS_CONNECTIVITY
_attr_should_poll = False
_attr_unique_id = "cloud-remote-ui-connectivity"
_attr_entity_category = ENTITY_CATEGORY_DIAGNOSTIC
def __init__(self, cloud):
"""Initialize the binary sensor."""