From 7ac43cbfcfcbbc37bd5f3e8dbb18b53d54c3d093 Mon Sep 17 00:00:00 2001 From: Joakim Plate Date: Thu, 2 May 2019 22:03:27 +0200 Subject: [PATCH] Add device classes to switch (#246) https://github.com/home-assistant/home-assistant/pull/23149 --- docs/entity_switch.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/entity_switch.md b/docs/entity_switch.md index 519ccdcb..179b005e 100644 --- a/docs/entity_switch.md +++ b/docs/entity_switch.md @@ -61,3 +61,10 @@ class MySwitch(SwitchDevice): async def async_toggle(self, **kwargs): """Toggle the entity.""" ``` + +### Available device classes +Optional. What type of device this. It will possibly map to google device types. +| Value | Description +| ----- | ----------- +| outlet | Device is an outlet for power. +| switch | Device is switch for some type of entity.