Use new enums in litterrobot (#61884)
Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
parent
ef15b159c1
commit
6c4f335650
3 changed files with 7 additions and 8 deletions
|
@ -3,8 +3,8 @@ from __future__ import annotations
|
|||
|
||||
from homeassistant.components.button import ButtonEntity
|
||||
from homeassistant.config_entries import ConfigEntry
|
||||
from homeassistant.const import ENTITY_CATEGORY_CONFIG
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.helpers.entity import EntityCategory
|
||||
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||
|
||||
from .const import DOMAIN
|
||||
|
@ -35,7 +35,7 @@ class LitterRobotResetWasteDrawerButton(LitterRobotEntity, ButtonEntity):
|
|||
"""Litter-Robot reset waste drawer button."""
|
||||
|
||||
_attr_icon = "mdi:delete-variant"
|
||||
_attr_entity_category = ENTITY_CATEGORY_CONFIG
|
||||
_attr_entity_category = EntityCategory.CONFIG
|
||||
|
||||
async def async_press(self) -> None:
|
||||
"""Press the button."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue