1 """Support for Nanoleaf buttons."""
8 from .
import NanoleafConfigEntry
9 from .coordinator
import NanoleafCoordinator
10 from .entity
import NanoleafEntity
15 entry: NanoleafConfigEntry,
16 async_add_entities: AddEntitiesCallback,
18 """Set up the Nanoleaf button."""
23 """Representation of a Nanoleaf identify button."""
25 _attr_entity_category = EntityCategory.CONFIG
26 _attr_device_class = ButtonDeviceClass.IDENTIFY
28 def __init__(self, coordinator: NanoleafCoordinator) ->
None:
29 """Initialize the Nanoleaf button."""
34 """Identify the Nanoleaf."""