Hyperion add entity category (#62268)

This commit is contained in:
starkillerOG 2021-12-18 14:45:53 +01:00 committed by GitHub
parent 503a5cbd44
commit c40b02896a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,7 +31,7 @@ from homeassistant.helpers.dispatcher import (
async_dispatcher_connect, async_dispatcher_connect,
async_dispatcher_send, async_dispatcher_send,
) )
from homeassistant.helpers.entity import DeviceInfo from homeassistant.helpers.entity import DeviceInfo, EntityCategory
from homeassistant.helpers.entity_platform import AddEntitiesCallback from homeassistant.helpers.entity_platform import AddEntitiesCallback
from homeassistant.util import slugify from homeassistant.util import slugify
@ -127,6 +127,8 @@ async def async_setup_entry(
class HyperionComponentSwitch(SwitchEntity): class HyperionComponentSwitch(SwitchEntity):
"""ComponentBinarySwitch switch class.""" """ComponentBinarySwitch switch class."""
_attr_entity_category = EntityCategory.CONFIG
def __init__( def __init__(
self, self,
server_id: str, server_id: str,