Fix comments in Alexa (#64289)

This commit is contained in:
Erik Montnemery
2022-01-17 14:22:04 +01:00
committed by GitHub
parent aa40476b49
commit c109d59862
2 changed files with 3 additions and 3 deletions

View File

@@ -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.
"""

View File

@@ -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")