Adding Foobot device sensor (#12417)

* Added Foobot device sensor

* Added error handling tests

* Corrections after PR review.

* Migrated to async/await syntax

 * lint fixes
 * stop raising HomeAssistantError
 * debug log for number of requests

* Moved shared data between sensors from a class attribute to a separate class

* Made test more async-aware

disabled setup error test for now as it's not working

* Working failure scenarios tests
This commit is contained in:
Fabien Piuzzi authored and Paulus Schoutsen committed 2018-03-15 19:50:58 -07:00
1 parent 2350ce96a6
commit 0deef34881
8 files changed
+289

No files matched your search

+1
View File
@@ -47,6 +47,7 @@ TEST_REQUIREMENTS = (
'ephem',
'evohomeclient',
'feedparser',
'foobot_async',
'gTTS-token',
'HAP-python',
'ha-ffmpeg',