Use web sockets for Harmony HUB (#19440)

* Updates to Harmony for web sockets

Updates to harmony to use web sockets with async

* Lint

* Small fixes

* Fix send_command

Continued improvements:
-) Fixed send_command
-) Get HUB configuration during update in case it was not retrieved earlier (i.e. HUB unavailable)

* Further improvements

Completely removed dependency on __main__ for pyharmony, instead everything is now done from the HarmonyClient class.
Writing out Harmony configuration file as a JSON file.
Using same functionality to determine if activity provided is an ID or name for device, allowing send_command to receive a device ID or device name.

* Point requirements to updated pyharmony repo

Updated REQUIREMENTS to point to repository containing the updates for pyharmony.

* lint

lint

* Small fix for device and activity ID

Small fix in checking if provided device or activity ID is valid.

* Pin package version

* No I/O in event loop

* Point at HA fork with correct version bump

* Fix req
This commit is contained in:
ehendrix23 2018-12-19 06:21:40 -07:00 committed by Paulus Schoutsen
parent 1568de62df
commit 23a579421d
3 changed files with 109 additions and 44 deletions

View file

@ -209,7 +209,7 @@ def gather_modules():
for req in module.REQUIREMENTS:
if req in IGNORE_REQ:
continue
if '://' in req:
if '://' in req and 'pyharmony' not in req:
errors.append(
"{}[Only pypi dependencies are allowed: {}]".format(
package, req))