mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 16:57:10 +00:00
Use new EntityCategory enum in elgato (#61379)
Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
parent
9f9e2db510
commit
5559c751a9
@ -7,9 +7,8 @@ from elgato import Elgato, ElgatoError, Info
|
||||
|
||||
from homeassistant.components.button import ButtonEntity, ButtonEntityDescription
|
||||
from homeassistant.config_entries import ConfigEntry
|
||||
from homeassistant.const import ENTITY_CATEGORY_CONFIG
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.helpers.entity import DeviceInfo
|
||||
from homeassistant.helpers.entity import DeviceInfo, EntityCategory
|
||||
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||
|
||||
from .const import DOMAIN
|
||||
@ -39,7 +38,7 @@ class ElgatoIdentifyButton(ButtonEntity):
|
||||
key="identify",
|
||||
name="Identify",
|
||||
icon="mdi:help",
|
||||
entity_category=ENTITY_CATEGORY_CONFIG,
|
||||
entity_category=EntityCategory.CONFIG,
|
||||
)
|
||||
self._attr_unique_id = f"{info.serial_number}_{self.entity_description.key}"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user