Fix comments in Alexa (#64289)
parent
aa40476b49
commit
c109d59862
|
@ -14,7 +14,7 @@ _LOGGER = logging.getLogger(__name__)
|
|||
async def async_handle_message(hass, config, request, context=None, enabled=True):
|
||||
"""Handle incoming API messages.
|
||||
|
||||
If enabled is False, the response to all messagess will be a
|
||||
If enabled is False, the response to all messages will be a
|
||||
BRIDGE_UNREACHABLE error. This can be used if the API has been disabled in
|
||||
configuration.
|
||||
"""
|
||||
|
|
|
@ -68,7 +68,7 @@ async def mock_stream(hass):
|
|||
|
||||
|
||||
def test_create_api_message_defaults(hass):
|
||||
"""Create a API message response of a request with defaults."""
|
||||
"""Create an API message response of a request with defaults."""
|
||||
request = get_new_request("Alexa.PowerController", "TurnOn", "switch#xy")
|
||||
directive_header = request["directive"]["header"]
|
||||
directive = messages.AlexaDirective(request)
|
||||
|
@ -93,7 +93,7 @@ def test_create_api_message_defaults(hass):
|
|||
|
||||
|
||||
def test_create_api_message_special():
|
||||
"""Create a API message response of a request with non defaults."""
|
||||
"""Create an API message response of a request with non defaults."""
|
||||
request = get_new_request("Alexa.PowerController", "TurnOn")
|
||||
directive_header = request["directive"]["header"]
|
||||
directive_header.pop("correlationToken")
|
||||
|
|
Loading…
Reference in New Issue