Releases: shbatm/PyISY
Releases · shbatm/PyISY
v3.0.0dev6 … Catch Timeout Error
Catch Timeout Error
v3.0.0dev5 … Add websocket guardian and cleanup.
Add websocket guardian and cleanup.
3.0.0dev4 Make sure only one websocket created
v3.0.0dev4 Merge branch 'async' into PyISY_beta
Minor fix
v3.0.0dev2 Update Error Handling
Async All the Things
Breaking Changes
- Module now uses asynchronous communications via
asyncio
andaiohttp
for communicating with the ISY. Updates are required to run the module in an asyncio event loop. - Connection with the ISY is no longer automatically initialized when the
ISY
orConnection
classes are initialized. Theawait isy.initialize()
function must be called when ready to connect. To test a connection only, you can useConnection.test_connection()
after initializing at least aConnection
class.
Changed
- Module can now be used/tested from the command-line with the new
__main__.py
script; you can test a connection withpython3 -m pyisy http://your-isy-url:80 username password
. - A new helper function has been added to create an
aiohttp.ClientSession
compliant with the ISY:Connection.get_new_client_session(use_https, tls_ver=1.1)
will return a web session that can be passed to the init functions ofISY
andConnection
classes.