Skip to content

Commit

Permalink
Add asyncio variant of controller for HTTP devices.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jc2k committed Dec 8, 2019
1 parent 4ee9d0e commit 05799b7
Show file tree
Hide file tree
Showing 17 changed files with 2,459 additions and 1 deletion.
2 changes: 1 addition & 1 deletion homekit/accessoryserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -980,7 +980,7 @@ def _post_pairings(self):

# 3) construct response TLV
tmp = [(TLV.kTLVType_State, TLV.M2)]
for index, pairing_id in enumerate(server_data.peers):
for index, pairing_id in enumerate(sorted(server_data.peers)):
tmp.append((TLV.kTLVType_Identifier, pairing_id.encode()))
tmp.append((TLV.kTLVType_PublicKey, server_data.get_peer_key(pairing_id.encode())))
user = TLV.kTLVType_Permission_RegularUser
Expand Down
21 changes: 21 additions & 0 deletions homekit/aio/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#
# Copyright 2018 Joachim Lusiardi
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

__all__ = [
'Controller'
]

from .controller import Controller
Loading

0 comments on commit 05799b7

Please sign in to comment.