Corrected fan device type in google assistant to fan (#17792)
parent
3f3955c1cd
commit
38576e5b74
|
@ -25,6 +25,7 @@ TYPE_LIGHT = PREFIX_TYPES + 'LIGHT'
|
|||
TYPE_SWITCH = PREFIX_TYPES + 'SWITCH'
|
||||
TYPE_VACUUM = PREFIX_TYPES + 'VACUUM'
|
||||
TYPE_SCENE = PREFIX_TYPES + 'SCENE'
|
||||
TYPE_FAN = PREFIX_TYPES + 'FAN'
|
||||
TYPE_THERMOSTAT = PREFIX_TYPES + 'THERMOSTAT'
|
||||
|
||||
SERVICE_REQUEST_SYNC = 'request_sync'
|
||||
|
|
|
@ -25,7 +25,7 @@ from homeassistant.components import (
|
|||
from . import trait
|
||||
from .const import (
|
||||
TYPE_LIGHT, TYPE_SCENE, TYPE_SWITCH, TYPE_VACUUM,
|
||||
TYPE_THERMOSTAT,
|
||||
TYPE_THERMOSTAT, TYPE_FAN,
|
||||
CONF_ALIASES, CONF_ROOM_HINT,
|
||||
ERR_NOT_SUPPORTED, ERR_PROTOCOL_ERROR, ERR_DEVICE_OFFLINE,
|
||||
ERR_UNKNOWN_ERROR
|
||||
|
@ -38,7 +38,7 @@ _LOGGER = logging.getLogger(__name__)
|
|||
DOMAIN_TO_GOOGLE_TYPES = {
|
||||
climate.DOMAIN: TYPE_THERMOSTAT,
|
||||
cover.DOMAIN: TYPE_SWITCH,
|
||||
fan.DOMAIN: TYPE_SWITCH,
|
||||
fan.DOMAIN: TYPE_FAN,
|
||||
group.DOMAIN: TYPE_SWITCH,
|
||||
input_boolean.DOMAIN: TYPE_SWITCH,
|
||||
light.DOMAIN: TYPE_LIGHT,
|
||||
|
|
|
@ -184,7 +184,7 @@ DEMO_DEVICES = [{
|
|||
'name': 'Living Room Fan'
|
||||
},
|
||||
'traits': ['action.devices.traits.OnOff'],
|
||||
'type': 'action.devices.types.SWITCH',
|
||||
'type': 'action.devices.types.FAN',
|
||||
'willReportState': False
|
||||
}, {
|
||||
'id': 'fan.ceiling_fan',
|
||||
|
@ -192,7 +192,7 @@ DEMO_DEVICES = [{
|
|||
'name': 'Ceiling Fan'
|
||||
},
|
||||
'traits': ['action.devices.traits.OnOff'],
|
||||
'type': 'action.devices.types.SWITCH',
|
||||
'type': 'action.devices.types.FAN',
|
||||
'willReportState': False
|
||||
}, {
|
||||
'id': 'group.all_fans',
|
||||
|
|
Loading…
Reference in New Issue