core/homeassistant/components/device_tracker
Phil Bruckner a5d95dfbdc 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.
2018-09-01 18:49:03 +02:00
..
__init__.py Deprecated stuff (#16019) 2018-08-20 16:34:18 +02:00
actiontec.py Remove inline pylint disables for messages disabled in pylintrc (#14978) 2018-06-16 00:15:46 +02:00
aruba.py Pylint cleanups (#15626) 2018-07-23 10:16:05 +02:00
asuswrt.py Fix comment formatting (#15447) 2018-07-13 15:05:55 +02:00
automatic.py More pylint 2 fixes (#15565) 2018-07-20 11:45:20 +03:00
bbox.py Upgrade pylint to 1.8.2 (#12274) 2018-02-11 09:20:28 -08:00
bluetooth_le_tracker.py Upgrade pylint to 1.8.2 (#12274) 2018-02-11 09:20:28 -08:00
bluetooth_tracker.py Add device_tracker.bluetooth_update service (#15252) 2018-08-27 09:08:23 +02:00
bmw_connected_drive.py More pylint 2 fixes (#15565) 2018-07-20 11:45:20 +03:00
bt_home_hub_5.py Fix bt_home_hub_5 device tracker (#15096) 2018-08-06 07:38:02 +02:00
cisco_ios.py Add python 3.7 to travis and tox (#14523) 2018-07-07 10:48:02 -04:00
ddwrt.py Pylint cleanups (#15626) 2018-07-23 10:16:05 +02:00
demo.py Update docstrings (#7361) 2017-04-29 22:04:49 -07:00
freebox.py More pylint 2 fixes (#15565) 2018-07-20 11:45:20 +03:00
fritz.py Upgrade pylint to 1.8.2 (#12274) 2018-02-11 09:20:28 -08:00
geofency.py Pylint cleanups (#15626) 2018-07-23 10:16:05 +02:00
google_maps.py Make last_seen attribute a timezone aware datetime in UTC (#16348) 2018-09-01 18:49:03 +02:00
gpslogger.py Lint cleanup (#15103) 2018-06-25 13:05:07 -04:00
hitron_coda.py Update hitron_coda.py (#14506) 2018-05-17 19:44:01 +02:00
huawei_router.py Misc cleanups (#15907) 2018-08-10 16:09:08 +02:00
icloud.py Improving icloud device tracker (#14078) 2018-05-08 23:42:57 +02:00
keenetic_ndms2.py Bumped NDMS2 client library to 0.0.4 to get compatible with python 3.5 (#16077) 2018-08-20 18:51:25 +02:00
linksys_ap.py Upgrade beautifulsoup4 to 4.6.3 (#15946) 2018-08-13 10:52:47 +02:00
linksys_smart.py Upgrade pylint to 1.8.2 (#12274) 2018-02-11 09:20:28 -08:00
locative.py Pylint cleanups (#15626) 2018-07-23 10:16:05 +02:00
luci.py Added option to connect via SSL for OpenWRT(luci) device tracker (#14627) 2018-05-26 09:51:21 +02:00
meraki.py Pylint cleanups (#15626) 2018-07-23 10:16:05 +02:00
mikrotik.py Remove some unneeded pylint import-error disables (#15386) 2018-07-09 21:34:27 +02:00
mqtt.py More pylint 2 fixes (#15516) 2018-07-18 11:54:27 +02:00
mqtt_json.py More pylint 2 fixes (#15516) 2018-07-18 11:54:27 +02:00
mysensors.py Reorganize mysensors (#15123) 2018-06-25 13:58:16 +02:00
netgear.py Update pynetgear to 0.4.1 (bugfixes) (#15768) 2018-07-31 21:40:13 +02:00
nmap_tracker.py Fix typo an coding style (#13970) 2018-04-18 12:43:55 +02:00
owntracks.py More pylint 2 fixes (#15516) 2018-07-18 11:54:27 +02:00
owntracks_http.py New features for Owntracks device_tracker (#11480) 2018-01-08 08:16:45 +01:00
ping.py Update based upon forum post (#15876) 2018-08-07 18:12:36 +02:00
ritassist.py Grammar and spelling fixes (#16065) 2018-08-19 22:29:08 +02:00
services.yaml Update services.yaml files (#10229) 2017-10-30 21:39:12 +01:00
sky_hub.py Pylint cleanups (#15626) 2018-07-23 10:16:05 +02:00
snmp.py Upgrade pysnmp to 4.4.5 (#15854) 2018-08-07 09:13:01 +02:00
swisscom.py Use constants for HTTP headers (#10313) 2017-11-04 12:04:05 -07:00
tado.py Tado: don't reference unset hass var (#13237) 2018-03-15 13:53:59 -07:00
tesla.py More pylint 2 fixes (#15565) 2018-07-20 11:45:20 +03:00
thomson.py Remove inline pylint disables for messages disabled in pylintrc (#14978) 2018-06-16 00:15:46 +02:00
tile.py Fix typo `asayn_init` instead of `async_init` (#15645) 2018-07-23 20:19:01 -06:00
tomato.py Pylint cleanups (#15626) 2018-07-23 10:16:05 +02:00
tplink.py TpLink Device Tracker Error (#15918) 2018-08-20 14:34:52 +02:00
trackr.py More pylint 2 fixes (#15565) 2018-07-20 11:45:20 +03:00
ubus.py Pylint 2 fixes (#15487) 2018-07-17 19:34:29 +02:00
unifi.py Add monitored conditions for Unifi device_tracker (#15888) 2018-08-13 21:18:25 +02:00
unifi_direct.py Add python 3.7 to travis and tox (#14523) 2018-07-07 10:48:02 -04:00
upc_connect.py Fixes for PEP257 (#11810) 2018-01-20 22:35:38 -08:00
volvooncall.py Handle the case where no registration number is available (instead display VIN (vehicle identification number)). (#9073) 2017-09-05 09:10:01 -07:00
xiaomi.py Fix a bunch of typos (#9545) 2017-09-23 17:15:46 +02:00
xiaomi_miio.py Update pydocstyle to 2.1.1 and flake8-docstrings to 1.3.0 (#14557) 2018-08-24 10:28:43 +02:00