mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-18 23:06:58 +00:00
Add device_class to MQTT switch (#20114)
This commit is contained in:
parent
c77aa7cceb
commit
cb6b00c340
@ -101,6 +101,11 @@ device:
|
|||||||
description: 'Identifier of a device that routes messages between this device and Home Assistant. Examples of such devices are hubs, or parent devices of a sub-device. This is used to show device topology in Home Assistant.'
|
description: 'Identifier of a device that routes messages between this device and Home Assistant. Examples of such devices are hubs, or parent devices of a sub-device. This is used to show device topology in Home Assistant.'
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
|
device_class:
|
||||||
|
description: The [type/class](/integrations/switch/#device-class) of the switch to set the icon in the frontend.
|
||||||
|
required: false
|
||||||
|
type: device_class
|
||||||
|
default: None
|
||||||
enabled_by_default:
|
enabled_by_default:
|
||||||
description: Flag which defines if the entity should be enabled when first added.
|
description: Flag which defines if the entity should be enabled when first added.
|
||||||
required: false
|
required: false
|
||||||
|
Loading…
x
Reference in New Issue
Block a user