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
Showing
- .coveragerc 1 addition, 0 deletions.coveragerc
- homeassistant/components/sensor/foobot.py 158 additions, 0 deletionshomeassistant/components/sensor/foobot.py
- requirements_all.txt 3 additions, 0 deletionsrequirements_all.txt
- requirements_test_all.txt 3 additions, 0 deletionsrequirements_test_all.txt
- script/gen_requirements_all.py 1 addition, 0 deletionsscript/gen_requirements_all.py
- tests/components/sensor/test_foobot.py 81 additions, 0 deletionstests/components/sensor/test_foobot.py
- tests/fixtures/foobot_data.json 34 additions, 0 deletionstests/fixtures/foobot_data.json
- tests/fixtures/foobot_devices.json 8 additions, 0 deletionstests/fixtures/foobot_devices.json
homeassistant/components/sensor/foobot.py
0 → 100644
tests/components/sensor/test_foobot.py
0 → 100644
tests/fixtures/foobot_data.json
0 → 100644
tests/fixtures/foobot_devices.json
0 → 100644
Please register or sign in to comment