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

+34
View File
@@ -0,0 +1,34 @@
{
"uuid": "32463564765421243",
"start": 1518134963,
"end": 1518134963,
"sensors": [
"time",
"pm",
"tmp",
"hum",
"co2",
"voc",
"allpollu"
],
"units": [
"s",
"ugm3",
"C",
"pc",
"ppm",
"ppb",
"%"
],
"datapoints": [
[
1518134963,
144.76668,
21.064333,
49.474,
1232.0,
340.66666,
138.93651
]
]
}