Use identify device class in HomeWizard identify button entity (#95369)

This commit is contained in:
Franck Nijhof 2023-06-27 14:30:46 +02:00 committed by GitHub
parent c1e8eb7c96
commit 9ca0a095ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,