Skip to content
Snippets Groups Projects
Commit fc894011 authored by Sam Birch's avatar Sam Birch Committed by Pascal Vizeli
Browse files

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
parent 63c9d59d
Branches logan/add_links_to_docs
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment