Display Fan entity as Fan category in Alexa (#27135)

* Added Fan to display categories.

* Added Doorbell to display categories.

* Added Microwave to display categories.

* Added Security Panel to display categories.

* Updated FanCapabilities to use FAN display category.

* Updated Tests for FanCapabilities to use FAN display category.
This commit is contained in:
ochlocracy authored and Jason Hu committed 2019-10-02 15:55:01 -07:00
1 parent 75bce84ad5
commit 363873dfcb
2 files changed
+15 -3

No files matched your search

+13 -1
View File
@@ -76,9 +76,18 @@ class DisplayCategory:
# Indicates a door.
DOOR = "DOOR"
# Indicates a doorbell.
DOOR_BELL = "DOORBELL"
# Indicates a fan.
FAN = "FAN"
# Indicates light sources or fixtures.
LIGHT = "LIGHT"
# Indicates a microwave oven.
MICROWAVE = "MICROWAVE"
# Indicates an endpoint that detects and reports motion.
MOTION_SENSOR = "MOTION_SENSOR"
@@ -91,6 +100,9 @@ class DisplayCategory:
# order is unimportant. Applies to Scenes
SCENE_TRIGGER = "SCENE_TRIGGER"
# Indicates a security panel.
SECURITY_PANEL = "SECURITY_PANEL"
# Indicates an endpoint that locks.
SMARTLOCK = "SMARTLOCK"
@@ -324,7 +336,7 @@ class FanCapabilities(AlexaEntity):
def default_display_categories(self):
"""Return the display categories for this entity."""
return [DisplayCategory.OTHER]
return [DisplayCategory.FAN]
def interfaces(self):
"""Yield the supported interfaces."""