mirror of
https://github.com/home-assistant/core.git
synced 2025-07-13 08:17:08 +00:00
Hyperion add entity category (#62268)
This commit is contained in:
parent
503a5cbd44
commit
c40b02896a
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user