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:
parent
75bce84ad5
commit
363873dfcb
2 changed files with 15 additions and 3 deletions
|
@ -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."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue