Hyperion add entity category (#62268)

pull/62284/head
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
1 changed files with 3 additions and 1 deletions

View File

@ -31,7 +31,7 @@ from homeassistant.helpers.dispatcher import (
async_dispatcher_connect,
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.util import slugify
@ -127,6 +127,8 @@ async def async_setup_entry(
class HyperionComponentSwitch(SwitchEntity):
"""ComponentBinarySwitch switch class."""
_attr_entity_category = EntityCategory.CONFIG
def __init__(
self,
server_id: str,