Update Alexa supported languages (#43139)

This commit is contained in:
100ferhas 2020-11-20 14:47:17 +01:00 committed by GitHub
parent c42b1f65b3
commit 9b3c97345a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -412,10 +412,17 @@ class AlexaLockController(AlexaCapability):
"en-AU", "en-AU",
"en-CA", "en-CA",
"en-GB", "en-GB",
"en-IN",
"en-US", "en-US",
"es-ES", "es-ES",
"es-MX",
"es-US",
"fr-CA",
"fr-FR",
"hi-IN",
"it-IT", "it-IT",
"ja-JP", "ja-JP",
"pt-BR",
} }
def name(self): def name(self):
@ -454,6 +461,7 @@ class AlexaSceneController(AlexaCapability):
supported_locales = { supported_locales = {
"de-DE", "de-DE",
"en-AU",
"en-CA", "en-CA",
"en-GB", "en-GB",
"en-IN", "en-IN",
@ -461,6 +469,7 @@ class AlexaSceneController(AlexaCapability):
"es-ES", "es-ES",
"fr-FR", "fr-FR",
"it-IT", "it-IT",
"ja-JP",
} }
def __init__(self, entity, supports_deactivation): def __init__(self, entity, supports_deactivation):
@ -488,8 +497,10 @@ class AlexaBrightnessController(AlexaCapability):
"en-US", "en-US",
"es-ES", "es-ES",
"fr-FR", "fr-FR",
"hi-IN",
"it-IT", "it-IT",
"ja-JP", "ja-JP",
"pt-BR",
} }
def name(self): def name(self):
@ -532,8 +543,10 @@ class AlexaColorController(AlexaCapability):
"en-US", "en-US",
"es-ES", "es-ES",
"fr-FR", "fr-FR",
"hi-IN",
"it-IT", "it-IT",
"ja-JP", "ja-JP",
"pt-BR",
} }
def name(self): def name(self):
@ -581,8 +594,10 @@ class AlexaColorTemperatureController(AlexaCapability):
"en-US", "en-US",
"es-ES", "es-ES",
"fr-FR", "fr-FR",
"hi-IN",
"it-IT", "it-IT",
"ja-JP", "ja-JP",
"pt-BR",
} }
def name(self): def name(self):
@ -669,7 +684,18 @@ class AlexaSpeaker(AlexaCapability):
https://developer.amazon.com/docs/device-apis/alexa-speaker.html https://developer.amazon.com/docs/device-apis/alexa-speaker.html
""" """
supported_locales = {"de-DE", "en-AU", "en-CA", "en-GB", "en-IN", "en-US"} supported_locales = {
"de-DE",
"en-AU",
"en-CA",
"en-GB",
"en-IN",
"en-US",
"es-ES",
"es-MX",
"it-IT",
"ja-JP",
}
def name(self): def name(self):
"""Return the Alexa API name of this interface.""" """Return the Alexa API name of this interface."""
@ -716,7 +742,16 @@ class AlexaStepSpeaker(AlexaCapability):
https://developer.amazon.com/docs/device-apis/alexa-stepspeaker.html https://developer.amazon.com/docs/device-apis/alexa-stepspeaker.html
""" """
supported_locales = {"de-DE", "en-AU", "en-CA", "en-GB", "en-IN", "en-US"} supported_locales = {
"de-DE",
"en-AU",
"en-CA",
"en-GB",
"en-IN",
"en-US",
"es-ES",
"it-IT",
}
def name(self): def name(self):
"""Return the Alexa API name of this interface.""" """Return the Alexa API name of this interface."""
@ -866,7 +901,16 @@ class AlexaContactSensor(AlexaCapability):
https://developer.amazon.com/docs/device-apis/alexa-contactsensor.html https://developer.amazon.com/docs/device-apis/alexa-contactsensor.html
""" """
supported_locales = {"en-CA", "en-US", "it-IT"} supported_locales = {
"de-DE",
"en-AU",
"en-CA",
"en-IN",
"en-US",
"es-ES",
"it-IT",
"ja-JP",
}
def __init__(self, hass, entity): def __init__(self, hass, entity):
"""Initialize the entity.""" """Initialize the entity."""
@ -905,7 +949,17 @@ class AlexaMotionSensor(AlexaCapability):
https://developer.amazon.com/docs/device-apis/alexa-motionsensor.html https://developer.amazon.com/docs/device-apis/alexa-motionsensor.html
""" """
supported_locales = {"en-CA", "en-US", "it-IT"} supported_locales = {
"de-DE",
"en-AU",
"en-CA",
"en-IN",
"en-US",
"es-ES",
"it-IT",
"ja-JP",
"pt-BR",
}
def __init__(self, hass, entity): def __init__(self, hass, entity):
"""Initialize the entity.""" """Initialize the entity."""
@ -955,6 +1009,7 @@ class AlexaThermostatController(AlexaCapability):
"fr-FR", "fr-FR",
"it-IT", "it-IT",
"ja-JP", "ja-JP",
"pt-BR",
} }
def __init__(self, hass, entity): def __init__(self, hass, entity):
@ -1127,7 +1182,7 @@ class AlexaSecurityPanelController(AlexaCapability):
"fr-FR", "fr-FR",
"it-IT", "it-IT",
"ja-JP", "ja-JP",
"pt_BR", "pt-BR",
} }
def __init__(self, hass, entity): def __init__(self, hass, entity):
@ -1623,6 +1678,7 @@ class AlexaToggleController(AlexaCapability):
"fr-FR", "fr-FR",
"it-IT", "it-IT",
"ja-JP", "ja-JP",
"pt-BR",
} }
def __init__(self, entity, instance, non_controllable=False): def __init__(self, entity, instance, non_controllable=False):
@ -1679,7 +1735,21 @@ class AlexaChannelController(AlexaCapability):
https://developer.amazon.com/docs/device-apis/alexa-channelcontroller.html https://developer.amazon.com/docs/device-apis/alexa-channelcontroller.html
""" """
supported_locales = {"de-DE", "en-AU", "en-CA", "en-GB", "en-IN", "en-US"} supported_locales = {
"de-DE",
"en-AU",
"en-CA",
"en-GB",
"en-IN",
"en-US",
"es-ES",
"es-MX",
"fr-FR",
"hi-IN",
"it-IT",
"ja-JP",
"pt-BR",
}
def name(self): def name(self):
"""Return the Alexa API name of this interface.""" """Return the Alexa API name of this interface."""
@ -1693,7 +1763,6 @@ class AlexaDoorbellEventSource(AlexaCapability):
""" """
supported_locales = { supported_locales = {
"en-US",
"de-DE", "de-DE",
"en-AU", "en-AU",
"en-CA", "en-CA",
@ -1702,8 +1771,10 @@ class AlexaDoorbellEventSource(AlexaCapability):
"en-US", "en-US",
"es-ES", "es-ES",
"es-MX", "es-MX",
"es-US",
"fr-CA", "fr-CA",
"fr-FR", "fr-FR",
"hi-IN",
"it-IT", "it-IT",
"ja-JP", "ja-JP",
} }
@ -1723,7 +1794,7 @@ class AlexaPlaybackStateReporter(AlexaCapability):
https://developer.amazon.com/docs/device-apis/alexa-playbackstatereporter.html https://developer.amazon.com/docs/device-apis/alexa-playbackstatereporter.html
""" """
supported_locales = {"de-DE", "en-GB", "en-US", "fr-FR"} supported_locales = {"de-DE", "en-GB", "en-US", "es-MX", "fr-FR"}
def name(self): def name(self):
"""Return the Alexa API name of this interface.""" """Return the Alexa API name of this interface."""
@ -1761,7 +1832,7 @@ class AlexaSeekController(AlexaCapability):
https://developer.amazon.com/docs/device-apis/alexa-seekcontroller.html https://developer.amazon.com/docs/device-apis/alexa-seekcontroller.html
""" """
supported_locales = {"de-DE", "en-GB", "en-US"} supported_locales = {"de-DE", "en-GB", "en-US", "es-MX"}
def name(self): def name(self):
"""Return the Alexa API name of this interface.""" """Return the Alexa API name of this interface."""
@ -1833,7 +1904,7 @@ class AlexaEqualizerController(AlexaCapability):
https://developer.amazon.com/en-US/docs/alexa/device-apis/alexa-equalizercontroller.html https://developer.amazon.com/en-US/docs/alexa/device-apis/alexa-equalizercontroller.html
""" """
supported_locales = {"en-US"} supported_locales = {"de-DE", "en-IN", "en-US", "es-ES", "it-IT", "ja-JP", "pt-BR"}
VALID_SOUND_MODES = { VALID_SOUND_MODES = {
"MOVIE", "MOVIE",
"MUSIC", "MUSIC",
@ -1929,8 +2000,10 @@ class AlexaCameraStreamController(AlexaCapability):
"en-US", "en-US",
"es-ES", "es-ES",
"fr-FR", "fr-FR",
"hi-IN",
"it-IT", "it-IT",
"ja-JP", "ja-JP",
"pt-BR",
} }
def name(self): def name(self):