Add hub- and device-info for tellduslive (#19180)

* add hub- and device-info

* attempt to make I/O outside event loop

* add_executer_job

* coroutines

* async_get_hubs

Co-Authored-By: fredrike <fredrik.e@gmail.com>

* asyncio fixes

* do device_info IO when device is discovered

* it's called async_add_executor_job

* nicer unique_id

* add comment

* it's called `async_add_executor_job`

* hub always contains 'name'

* await each new device

* add comment to why gather is bad
This commit is contained in:
Fredrik Erlandsson authored and Charles Garwood committed 2018-12-23 13:13:49 -05:00
1 parent 50888ae339
commit 0b84eefa2e
4 files changed
+55 -9

No files matched your search

@@ -146,4 +146,4 @@ class TelldusLiveSensor(TelldusLiveEntity):
@property
def unique_id(self) -> str:
"""Return a unique ID."""
return "-".join(map(str, self._id))
return "{}-{}-{}".format(*self._id)