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

home-assistant / home-assistant-cli / 179
72%

Build:
DEFAULT BRANCH: dev
Ran 21 Jan 2019 01:03AM UTC
Jobs 1
Files 20
Run time 1s
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
179

push

travis-ci-com

maxandersen
Add --since and --end time periods for history

Why:

 * history defaults to query last 24 hours which can be quite slow
 * using absolute timestamp is hard/noisy

This change addreses the need by:

 * Add `--since` and `--end` options to history.
   since designate the start time of the period, end the end.
   Both accepts full timestamps or relative time expression (i.e.
   3m are 3 minutes).
   Uses dateparser.readthedocs.io/en/latest/ so the actual formats
   are even wider/longer.
 * verbose option will print the exact converted/detected timestamps.

Example:
   show history from the last 2 minutes:
	`hass-cli entity history --since 2m`
   show history 2 days ago:
	`hass-cli entity history --since 3d --end 2d`

954 of 1264 relevant lines covered (75.47%)

0.75 hits per line

Jobs
ID Job ID Ran Files Coverage
4 179.4 (TOXENV=cov) 21 Jan 2019 01:03AM UTC 0
75.47
Travis Job 179.4
Source Files on build 179
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #179
  • b93ab247 on github
  • Prev Build on dev (#176)
  • Next Build on dev (#181)
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