mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 00:37:13 +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_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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user