-
- Downloads
Binary sensor for detecting linear trends (#9808)
* Trend sensor now uses linear regression to calculate trend * Added numpy to trend sensor test requirements * Added trendline tests * Trend sensor now has max_samples attribute * Trend sensor uses utcnow from HA utils * Trend sensor now completes setup in async_added_to_hass * Fixed linter issues * Fixed broken import * Trend tests make use of max_samples * Added @asyncio.coroutine decorator to trend update callback * Update trend.py
Showing
- homeassistant/components/binary_sensor/trend.py 108 additions, 46 deletionshomeassistant/components/binary_sensor/trend.py
- requirements_all.txt 1 addition, 0 deletionsrequirements_all.txt
- requirements_test_all.txt 4 additions, 0 deletionsrequirements_test_all.txt
- script/gen_requirements_all.py 1 addition, 0 deletionsscript/gen_requirements_all.py
- tests/components/binary_sensor/test_trend.py 86 additions, 4 deletionstests/components/binary_sensor/test_trend.py
Loading
Please register or sign in to comment