mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 07:07:28 +00:00
Use identify device class in HomeWizard identify button entity (#95369)
This commit is contained in:
parent
c1e8eb7c96
commit
9ca0a095ab
@ -1,6 +1,6 @@
|
|||||||
"""Support for HomeWizard buttons."""
|
"""Support for HomeWizard buttons."""
|
||||||
|
|
||||||
from homeassistant.components.button import ButtonEntity
|
from homeassistant.components.button import ButtonDeviceClass, ButtonEntity
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
from homeassistant.const import EntityCategory
|
from homeassistant.const import EntityCategory
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
@ -25,8 +25,7 @@ class HomeWizardIdentifyButton(HomeWizardEntity, ButtonEntity):
|
|||||||
"""Representation of a identify button."""
|
"""Representation of a identify button."""
|
||||||
|
|
||||||
_attr_entity_category = EntityCategory.DIAGNOSTIC
|
_attr_entity_category = EntityCategory.DIAGNOSTIC
|
||||||
_attr_icon = "mdi:magnify"
|
_attr_device_class = ButtonDeviceClass.IDENTIFY
|
||||||
_attr_name = "Identify"
|
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user