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

home-assistant / home-assistant / 48819
94%

Build:
DEFAULT BRANCH: dev
Ran 01 Sep 2018 04:59PM UTC
Jobs 1
Files 438
Run time 21s
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
48819

push

travis-ci

fabaff
Make last_seen attribute a timezone aware datetime in UTC (#16348)

The last_seen attribute was a datetime in the local timezone but with
no tzinfo (i.e., a "naive" datetime.) When state changes occurred it
would be printed incorrectly in homeassistant.log because
homeassistant.util.dt.as_local assumes any datetime without tzinfo is
UTC. Also most, if not all, datetime attributes are timezone aware in
UTC. So use homeassistant.util.dt.as_utc (which assumes a naive
datetime is local) to convert last_seen to a timezone aware datetime
in UTC.

38047 of 40577 relevant lines covered (93.76%)

0.94 hits per line

Jobs
ID Job ID Ran Files Coverage
4 48819.4 (TOXENV=cov) 01 Sep 2018 04:59PM UTC 0
93.76
Travis Job 48819.4
Source Files on build 48819
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #48819
  • a5d95dfb on github
  • Prev Build on dev (#48817)
  • Next Build on dev (#48824)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc