Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Asyncio client for HTTP #154

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 18 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,25 @@ matrix:
python: 3.7
- os: osx
language: generic
env: PYTHON=3.5.6
addons:
homebrew:
packages: python
install:
- python -m pip install -r requirements_osx.txt

before_install:
- ./.travis/install.sh
- python3 -m venv ./venv
- source venv/bin/activate
- python -m pip install coveralls

install:
- sudo apt-get update
- sudo apt-get install -y build-essential python3-dev libdbus-1-dev libdbus-glib-1-dev libgirepository1.0-dev
- python -m pip install -r requirements.txt

script:
- flake8 homekit
- coverage run -m pytest tests/
- python -m flake8 homekit
- python -m coverage run -m pytest tests/

after_success:
- coveralls
- coveralls
34 changes: 0 additions & 34 deletions .travis/install.sh

This file was deleted.

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