mirror of
https://github.com/esphome/esphome.git
synced 2024-12-22 13:34:54 +01:00
Add default icon to restart button (#7076)
Co-authored-by: Leo Schelvis <leo.schelvis@gmail.com>
This commit is contained in:
parent
91bb38553d
commit
a34cec217e
1 changed files with 2 additions and 0 deletions
|
@ -5,6 +5,7 @@ from esphome.const import (
|
|||
CONF_ID,
|
||||
DEVICE_CLASS_RESTART,
|
||||
ENTITY_CATEGORY_CONFIG,
|
||||
ICON_RESTART,
|
||||
)
|
||||
|
||||
restart_ns = cg.esphome_ns.namespace("restart")
|
||||
|
@ -12,6 +13,7 @@ RestartButton = restart_ns.class_("RestartButton", button.Button, cg.Component)
|
|||
|
||||
CONFIG_SCHEMA = button.button_schema(
|
||||
RestartButton,
|
||||
icon=ICON_RESTART,
|
||||
device_class=DEVICE_CLASS_RESTART,
|
||||
entity_category=ENTITY_CATEGORY_CONFIG,
|
||||
).extend(cv.COMPONENT_SCHEMA)
|
||||
|
|
Loading…
Reference in a new issue