• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

home-assistant / home-assistant / 46208
94%

Build:
DEFAULT BRANCH: dev
Ran 10 Jul 2018 10:33AM UTC
Jobs 6
Files 415
Run time 17min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
46208

push

travis-ci

balloob
Improve NetAtmo sensors update logic (#14866)

* Added a "last update" sensor that could be used by automations + cosmetic changes

* Improved the update logic of sensor data

The platform is now continuously adjusting the refresh interval
in order to synchronize with the expected next update from the
NetAtmo cloud. This significantly improves reaction time of
automations while keeping the refresh time to the recommended
value (10 minutes).

* Linting

* Incorporated the advanced Throttle class to support adaptive
throttling, as opposed to integrating it in the core framework.

Following code review, it was suggested to implement the
specialised Throttle class in this platform instead of making a
change in the general util package. Except that the required change
(about 4 LoC) is part of the only relevant piece of code of that
class, therefore this commit includes a full copy of the Throttle
class from homeassistant.util, plus the extra feature to support
adaptive throttling.

* Cosmetic changes on the introduced "last updated" sensor

* Alternate implementation for the adaptive throttling

Ensure the updates from the cloud are throttled and adapted to the
last update time provided by NetAtmo, without using the Throttle
decorator. Similar logic and similar usage of a lock to protect
the execution of the remote update.

* Linting

36545 of 38915 relevant lines covered (93.91%)

2.81 hits per line

Jobs
ID Job ID Ran Files Coverage
1 46208.1 (TOXENV=lint) 10 Jul 2018 10:34AM UTC 0
Travis Job 46208.1
2 46208.2 (TOXENV=pylint) 10 Jul 2018 10:45AM UTC 0
Travis Job 46208.2
3 46208.3 (TOXENV=typing) 10 Jul 2018 10:33AM UTC 0
Travis Job 46208.3
4 46208.4 (TOXENV=py35) 10 Jul 2018 10:42AM UTC 0
93.9
Travis Job 46208.4
5 46208.5 (TOXENV=py36) 10 Jul 2018 10:43AM UTC 0
93.91
Travis Job 46208.5
6 46208.6 (TOXENV=py37) 10 Jul 2018 10:51AM UTC 0
93.59
Travis Job 46208.6
Source Files on build 46208
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #46208
  • 9ea0c409 on github
  • Prev Build on dev (#46207)
  • Next Build on dev (#46210)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc