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
This commit is contained in:
1 parent
63c9d59d54
commit
fc8940111d
5 files changed
+199
-49
No files matched your search
@@ -55,6 +55,7 @@ TEST_REQUIREMENTS = (
|
||||
'libpurecoollink',
|
||||
'libsoundtouch',
|
||||
'mficlient',
|
||||
'numpy',
|
||||
'paho-mqtt',
|
||||
'pexpect',
|
||||
'pilight',
|
||||
|
||||
Reference in new issue
Block a user