Fix Python 3.6 compatibility for HomeKit controller (#14160)

Python 3.6's http client passes an additional argument to _send_output,
so add that to the function definition.
This commit is contained in:
Matthew Garrett 2018-04-29 00:46:36 -07:00 committed by Martin Hjelmare
parent fd038b6de9
commit ef48a7ca2c

View File

@ -31,7 +31,7 @@ KNOWN_DEVICES = "{}-devices".format(DOMAIN)
_LOGGER = logging.getLogger(__name__) _LOGGER = logging.getLogger(__name__)
def homekit_http_send(self, message_body=None): def homekit_http_send(self, message_body=None, encode_chunked=False):
r"""Send the currently buffered request and clear the buffer. r"""Send the currently buffered request and clear the buffer.
Appends an extra \r\n to the buffer. Appends an extra \r\n to the buffer.