Add device_class to cover template #23486 (#9348)

This commit is contained in:
Penny Wood 2019-04-30 01:37:29 +08:00 committed by Klaas Schoute
parent 828e69a53d
commit acbedd5d86

View File

@ -67,6 +67,10 @@ cover:
description: Defines a template to specify which icon to use.
required: false
type: template
device_class:
description: The [type/class](/components/cover/#device-class) of the cover to set the icon in the frontend.
required: false
type: string
open_cover:
description: Defines an action to run when the cover is opened. If [`open_cover`](#open_cover) is specified, [`close_cover`](#close_cover) must also be specified. At least one of [`open_cover`](#open_cover) and [`set_cover_position`](#set_cover_position) must be specified.
required: inclusive