core/homeassistant/components
ehendrix23 d2e102ee2f Init statistics sensor upon HASS start ()
* Update query to include maxAge

Updated the query from recorded to include MaxAge if set; reducing the amount of records retrieved that would otherwise be purged anyway for the sensor.

* Initialization upon HASS start

Register the state listener and read previous information from recorder once HASS is started.

* Updated test_statistics.py for HASS start

Updated test_statistics.py to start HASS and wait it is completed before running test.

* Added newline in docstring

Added newline in docstring.

* Added start of HASS to test_initialize_from_database_with_maxage

Added start of HASS to new test test_initialize_from_database_with_maxage.

* Updates based on review

Following updates based on review:
-) Removed self._hass and passing hass
-) Changed async_add_job to async_create_task
-) For state update, calling async_schedule_update_ha_state
2018-11-14 15:13:32 +01:00
..
ads More pylint 2 fixes () 2018-07-20 11:45:20 +03:00
alarm_control_panel bump total connect client to 0.22 () 2018-11-09 20:04:28 -05:00
alexa Return color information in Alexa Smart Home response () 2018-11-11 17:43:01 +01:00
auth Update translations 2018-11-03 13:47:36 +01:00
automation Webhook names () 2018-11-05 09:23:58 +01:00
axis Axis - prepare for config entry () 2018-10-29 06:52:30 +01:00
binary_sensor Sense will not list removed devices () 2018-11-13 08:34:11 +01:00
blink Bump blinkpy version to 0.10.1 () 2018-10-18 21:30:46 +02:00
bmw_connected_drive Enable BMW component to be unit system aware () 2018-10-11 10:55:22 +02:00
calendar Narrow scope of various pylint inline disables () 2018-10-10 12:17:11 +02:00
camera Remove FFmpeg input tests () 2018-11-03 12:36:22 +01:00
cast Update translations 2018-10-26 10:18:10 +02:00
climate Daikin fixes () 2018-11-13 08:33:34 +01:00
cloud Add support for locks in google assistant component () 2018-11-06 10:39:10 +01:00
config Add group foundation () 2018-10-08 16:35:38 +02:00
conversation rewrite hangouts to use intents instead of commands () 2018-08-28 00:20:12 +02:00
counter Fix counter restore. () 2018-10-03 23:12:21 +02:00
cover Changed checking of cover state closed from 0 to closed_position variable. () 2018-11-12 19:45:59 +00:00
deconz Add translations 2018-11-07 10:45:29 +01:00
device_tracker Bumps pytile to 2.0.5 () 2018-11-12 19:10:03 -07:00
dialogflow Add translations 2018-11-07 10:45:29 +01:00
elkm1 Bump elkm1_lib version () 2018-11-14 02:20:15 +01:00
emulated_hue block external IP () 2018-10-08 20:50:24 +02:00
fan Use async_add_executor_job at the xiaomi_miio platforms () 2018-11-07 09:03:35 +01:00
frontend Bump frontend to 20181112.0 2018-11-12 15:14:37 +01:00
geo_location Upgrade georss_client to 0.4 () 2018-11-01 16:32:21 +01:00
geofency Split out geofency with a component and platform () 2018-11-06 20:12:03 +01:00
google_assistant Google assistant enable fan speed controls () 2018-11-11 22:02:33 +01:00
group Add optional "all" parameter for groups () 2018-10-09 10:14:55 +02:00
habitica Minor updates () 2018-10-14 17:11:39 +02:00
hangouts add service to reconnect the bot () 2018-11-05 13:14:22 +01:00
hassio Fix log error message () 2018-11-08 00:33:51 +01:00
homekit Update HAP-python to 2.4.0 () 2018-11-10 18:33:45 +01:00
homekit_controller Add support for switches in homekit controller () 2018-11-06 15:32:32 +01:00
homematic Update pyhomematic to 0.1.51 () 2018-10-15 21:15:26 +02:00
homematicip_cloud Update translations 2018-11-03 13:47:36 +01:00
http Allow creating signed urls () 2018-10-25 16:44:57 +02:00
hue Update translations 2018-10-26 10:18:10 +02:00
ifttt Webhook names () 2018-11-05 09:23:58 +01:00
ihc Async syntax 8/8 () 2018-10-01 08:52:42 +02:00
image_processing catch key error when saving image () 2018-11-11 17:44:41 +01:00
insteon Fix IOLinc sensor () 2018-11-06 10:36:52 +01:00
ios Update translations 2018-10-26 10:18:10 +02:00
lifx Update translations 2018-10-26 10:18:10 +02:00
light Add Philips Zhirui Downlight support () 2018-11-14 12:33:27 +01:00
lock Update pynello to 2.0.2 () 2018-11-12 09:54:08 -05:00
lovelace Lovelace: Duplicate ID check on load config + caching () 2018-11-05 20:12:31 -05:00
luftdaten Add translations 2018-11-07 10:45:29 +01:00
mailbox Add Call Data Log platform. Mailboxes no longer require media () 2018-09-21 11:55:12 +02:00
mailgun Add translations 2018-11-07 10:45:29 +01:00
media_player Upgrade async_upnp_client to 0.13.2 () 2018-11-11 15:10:03 +00:00
mqtt Move more MQTT platforms to config entries () 2018-11-06 16:09:46 +01:00
mysensors add heartbeat support to mysensors () 2018-11-10 21:08:03 +01:00
nest Add services to set/update and cancel Nest ETA () 2018-11-06 16:11:10 +01:00
notify Discord - Minor bugfixes () 2018-11-11 23:16:23 +01:00
onboarding Added support for private storage. () 2018-09-26 10:24:32 +02:00
opentherm_gw Bump pyotgw to 0.3b1 () 2018-11-07 09:55:22 +01:00
openuv Fixes an issue with OpenUV config import failing () 2018-10-27 11:07:08 -06:00
persistent_notification Add time created to persistent notifications. () 2018-10-04 10:24:14 +02:00
rainmachine Use async_create_task () 2018-07-23 14:05:38 +02:00
recorder Upgrade sqlalchemy to 1.2.13 () 2018-11-01 13:25:45 +01:00
remember_the_milk More pylint 2 fixes () 2018-07-20 11:45:20 +03:00
remote Use async_add_executor_job at the xiaomi_miio platforms () 2018-11-07 09:03:35 +01:00
scene deCONZ - reflect hub status on entities () 2018-11-05 16:21:44 +01:00
sensor Init statistics sensor upon HASS start () 2018-11-14 15:13:32 +01:00
simplisafe Update translations 2018-10-30 11:35:40 +01:00
smhi Fix smhi docstrings () 2018-11-13 10:01:14 +01:00
sonos Update translations 2018-10-30 11:35:40 +01:00
switch Switchmate library update () 2018-11-09 23:41:44 +01:00
system_log Async syntax 8/8 () 2018-10-01 08:52:42 +02:00
telegram_bot Fixes Telegram webhooks () 2018-10-28 19:39:23 +01:00
tibber Better error handling in Tibber () 2018-11-11 14:06:21 +01:00
timer Remove service helper (4) () 2018-09-26 18:02:05 +02:00
tradfri Update translations 2018-11-03 13:47:36 +01:00
tts Add Mexican Spanish language () 2018-10-24 22:56:14 +02:00
twilio Add translations 2018-11-07 10:45:29 +01:00
unifi Add translations 2018-11-07 10:45:29 +01:00
upnp Upgrade async_upnp_client to 0.13.2 () 2018-11-11 15:10:03 +00:00
vacuum Use async_add_executor_job at the xiaomi_miio platforms () 2018-11-07 09:03:35 +01:00
water_heater Moved Wink water heater from climate to water heater. () 2018-10-16 11:27:01 +02:00
weather Fix smhi docstrings () 2018-11-13 10:01:14 +01:00
websocket_api Import homeassistant domain instead of hardcoding it () 2018-10-30 17:38:09 +02:00
wink Moved Wink water heater from climate to water heater. () 2018-10-16 11:27:01 +02:00
zha Add support for various load level devices () 2018-11-03 22:25:05 +01:00
zone Update translations 2018-10-17 14:12:41 +02:00
zoneminder Implement ZoneMinder run states () 2018-10-11 09:38:31 +02:00
zwave Update pyozw to 0.1.1 () 2018-11-13 23:43:01 +01:00
__init__.py Allow a list ofr update entity () 2018-10-27 21:34:33 +02:00
abode.py Bump version of abodepy to 0.14.0 () 2018-10-11 22:00:51 +02:00
alarmdecoder.py Add relay addr & chan config to alarmdecoder zones () 2018-07-21 17:31:07 +02:00
alert.py Add message template support for alert component () 2018-11-01 09:48:11 +01:00
amcrest.py More pylint 2 fixes () 2018-07-20 11:45:20 +03:00
android_ip_webcam.py Async syntax 8/8 () 2018-10-01 08:52:42 +02:00
apcupsd.py Narrow scope of various pylint inline disables () 2018-10-10 12:17:11 +02:00
api.py Bugfix eventstream with EOF on end () 2018-10-15 10:31:49 +02:00
apple_tv.py Pass hass_config to load_platform () 2018-10-29 19:21:21 +01:00
aqualogic.py Add AquaLogic component () 2018-10-02 07:32:03 +02:00
arduino.py More pylint 2 fixes () 2018-07-20 11:45:20 +03:00
arlo.py Bump pyarlo==0.2.2 () 2018-10-21 19:54:51 +02:00
asterisk_mbox.py Validate ports as a port () 2018-10-17 23:09:05 +02:00
asuswrt.py Bumping aioasuswrt () 2018-11-13 14:04:36 +01:00
august.py Set available property () 2018-10-23 14:09:08 +02:00
bbb_gpio.py
bloomsky.py Fix Bloomsky api call () 2018-10-30 21:23:44 +01:00
browser.py
canary.py More pylint 2 fixes () 2018-07-20 11:45:20 +03:00
cloudflare.py
coinbase.py Filter Coinbase account wallets () 2018-11-12 11:26:05 +01:00
comfoconnect.py More pylint 2 fixes () 2018-07-20 11:45:20 +03:00
configurator.py Async syntax 2, camera & climate & config () 2018-10-01 08:50:05 +02:00
daikin.py updated pydaikin version () 2018-11-12 22:53:50 +01:00
datadog.py
demo.py Async syntax 8/8 () 2018-10-01 08:52:42 +02:00
device_sun_light_trigger.py Use const.SUN_EVENT_* more () 2018-10-31 09:10:28 +01:00
digital_ocean.py More pylint 2 fixes () 2018-07-20 11:45:20 +03:00
discovery.py Disable upnp from being discovered () 2018-10-29 15:52:30 +01:00
dominos.py
doorbird.py Update to DoorBirdPy v2 (again) () 2018-11-01 21:23:06 +01:00
downloader.py
duckdns.py Async syntax 8/8 () 2018-10-01 08:52:42 +02:00
dweet.py
dyson.py Add support for Dyson Hot+Cool Fan as a climate device () 2018-10-21 17:35:07 +02:00
ecobee.py More pylint 2 fixes () 2018-07-20 11:45:20 +03:00
ecovacs.py Bump sucks (Ecovacs) lib to 0.9.3 () 2018-09-23 09:43:01 +02:00
edp_redy.py edp_redy: increase UPDATE_INTERVAL () 2018-11-13 14:24:30 +01:00
egardia.py Update pydocstyle to 2.1.1 and flake8-docstrings to 1.3.0 () 2018-08-24 10:28:43 +02:00
eight_sleep.py Use async_create_task () 2018-07-23 14:05:38 +02:00
emoncms_history.py
enocean.py
envisalink.py Bump pyenvisalink () 2018-10-03 06:28:08 +02:00
eufy.py Bump python-lakeside dependency 2018-08-13 10:39:48 -07:00
evohome.py Pass hass_config to load_platform () 2018-10-29 19:21:21 +01:00
feedreader.py avoid error in debug log mode and rss entry without title () 2018-08-31 12:54:25 +02:00
ffmpeg.py Remove config (breaking change) () 2018-11-04 15:20:32 +01:00
folder_watcher.py
foursquare.py Async syntax 8/8 () 2018-10-01 08:52:42 +02:00
freedns.py Async syntax 8/8 () 2018-10-01 08:52:42 +02:00
fritzbox.py Add new component fritzbox binary_sensor () 2018-10-04 12:16:27 +02:00
gc100.py More pylint 2 fixes () 2018-07-20 11:45:20 +03:00
goalfeed.py Update pysher version () 2018-10-14 23:51:15 +02:00
google.py Pass hass_config to load_platform () 2018-10-29 19:21:21 +01:00
google_domains.py Async syntax 8/8 () 2018-10-01 08:52:42 +02:00
graphite.py Narrow scope of various pylint inline disables () 2018-10-10 12:17:11 +02:00
greeneye_monitor.py Add a component for GreenEye Monitor () 2018-11-01 10:46:11 +01:00
hdmi_cec.py
history.py More pylint 2 fixes () 2018-07-20 11:45:20 +03:00
history_graph.py
hive.py
huawei_lte.py Make dicttoxml logging less verbose () 2018-10-15 11:25:38 +02:00
hydrawise.py Async syntax 8/8 () 2018-10-01 08:52:42 +02:00
influxdb.py
input_boolean.py Remove service helper (3) () 2018-09-26 08:50:05 +02:00
input_datetime.py Clean up input-datetime () 2018-08-16 22:17:14 +02:00
input_number.py Exposes initial attribute on the entity. () 2018-11-02 16:52:02 +01:00
input_select.py Async syntax 3/8 () 2018-10-01 08:59:45 +02:00
input_text.py Async syntax 3/8 () 2018-10-01 08:59:45 +02:00
insteon_local.py Spelling fixes () 2018-08-23 22:56:18 +02:00
insteon_plm.py Async syntax 8/8 () 2018-10-01 08:52:42 +02:00
intent_script.py async_create_task () 2018-10-02 11:03:09 +02:00
introduction.py Async syntax 8/8 () 2018-10-01 08:52:42 +02:00
iota.py Update pydocstyle to 2.1.1 and flake8-docstrings to 1.3.0 () 2018-08-24 10:28:43 +02:00
isy994.py Async syntax 8/8 () 2018-10-01 08:52:42 +02:00
joaoapps_join.py
juicenet.py Revert changes to platforms using self.device () 2018-08-26 21:25:39 +02:00
keyboard.py Narrow scope of various pylint inline disables () 2018-10-10 12:17:11 +02:00
keyboard_remote.py Added identifier and name to connect/disconnect events () 2018-11-01 09:48:44 +01:00
kira.py
knx.py updated version of xknx () 2018-10-28 23:03:27 +01:00
konnected.py Konnected: Pass hass_config to load_platform () 2018-10-31 08:42:33 +02:00
lametric.py
linode.py More pylint 2 fixes () 2018-07-20 11:45:20 +03:00
lirc.py
litejet.py
logbook.py Add LogBook support to HomeKit () 2018-10-16 13:32:53 +02:00
logentries.py
logger.py Remove service helper (8) () 2018-10-02 10:23:37 +02:00
logi_circle.py Add Logi Circle component, camera and sensor platform () 2018-09-21 12:00:15 +02:00
lupusec.py Add support for Lupusec alarm control panel () 2018-11-07 12:51:12 +01:00
lutron.py Async syntax 8/8 () 2018-10-01 08:52:42 +02:00
lutron_caseta.py Async syntax 8/8 () 2018-10-01 08:52:42 +02:00
map.py Bump frontend to 20180816.0 2018-08-16 14:21:49 +02:00
matrix.py More pylint 2 fixes () 2018-07-20 11:45:20 +03:00
maxcube.py Pass hass_config to load_platform () 2018-10-29 19:21:21 +01:00
media_extractor.py Upgrade youtube_dl to 2018.10.29 () 2018-11-01 13:26:12 +01:00
melissa.py Removes melissa sensors (they should be state attributes as implemented in ) () 2018-11-05 16:10:30 +01:00
microsoft_face.py Remove service helper (8) () 2018-10-02 10:23:37 +02:00
mochad.py More pylint 2 fixes () 2018-07-20 11:45:20 +03:00
modbus.py Validate ports as a port () 2018-10-17 23:09:05 +02:00
mqtt_eventstream.py Remove homeassistant.remote () 2018-08-21 15:49:58 +02:00
mqtt_statestream.py Async syntax 8/8 () 2018-10-01 08:52:42 +02:00
mychevy.py Fix incorrect chevy discovery () 2018-10-29 15:49:57 +01:00
mycroft.py
namecheapdns.py Async syntax 8/8 () 2018-10-01 08:52:42 +02:00
neato.py Update Neato states, actions and alerts based on Neato docs () 2018-11-06 16:10:39 +01:00
netatmo.py Add additional Netatmo public data sensors () 2018-09-25 11:14:42 +02:00
netgear_lte.py Improve netgear_lte logging when unconnected () 2018-11-04 09:15:57 +01:00
no_ip.py Async syntax 8/8 () 2018-10-01 08:52:42 +02:00
nuheat.py
nuimo_controller.py More pylint 2 fixes () 2018-07-20 11:45:20 +03:00
octoprint.py Pass hass_config to load_platform () 2018-10-29 19:21:21 +01:00
panel_custom.py Add support for JS modules in custom panels () 2018-08-23 11:14:18 +02:00
panel_iframe.py
pilight.py More pylint 2 fixes () 2018-07-20 11:45:20 +03:00
plant.py Async syntax 8/8 () 2018-10-01 08:52:42 +02:00
prometheus.py Add input_boolean reporting to Prometheus () 2018-11-06 13:19:36 +01:00
proximity.py
python_script.py Upgrade restrictedpython to 4.0b6 () 2018-11-01 14:25:45 +01:00
qwikswitch.py Revert changes to platforms using self.device () 2018-08-26 21:25:39 +02:00
rachio.py Rachio component modernization () 2018-09-27 23:17:15 +02:00
rainbird.py
raincloud.py Async syntax 8/8 () 2018-10-01 08:52:42 +02:00
raspihats.py Narrow scope of various pylint inline disables () 2018-10-10 12:17:11 +02:00
rest_command.py Async syntax 8/8 () 2018-10-01 08:52:42 +02:00
rflink.py Fix RFLink issue () 2018-10-28 13:57:44 +01:00
rfxtrx.py Async syntax 8/8 () 2018-10-01 08:52:42 +02:00
ring.py Updated ring_doorbell dependency to 0.2.2 () 2018-10-29 23:27:12 +01:00
route53.py Add optional ttl config to route53 component () 2018-11-02 21:41:26 -06:00
rpi_gpio.py Narrow scope of various pylint inline disables () 2018-10-10 12:17:11 +02:00
rpi_pfio.py Changed from pifacecommon 4.1.2 to 4.2.2 to make the piface digital i/o boards work on rpi like 3 () 2018-11-02 14:44:20 +01:00
rss_feed_template.py Async syntax 8/8 () 2018-10-01 08:52:42 +02:00
sabnzbd.py Fix the sabnzbd component api error () 2018-10-16 00:18:59 +02:00
satel_integra.py Async syntax 8/8 () 2018-10-01 08:52:42 +02:00
script.py Remove service helper (5) () 2018-09-27 23:13:11 +02:00
scsgate.py Narrow scope of various pylint inline disables () 2018-10-10 12:17:11 +02:00
sense.py Fix default value for optional Sense configuration parameter () 2018-11-11 22:55:45 +01:00
services.yaml Axis - prepare for config entry () 2018-10-29 06:52:30 +01:00
shell_command.py Async syntax 8/8 () 2018-10-01 08:52:42 +02:00
shiftr.py Upgrade paho-mqtt to 1.4.0 () 2018-09-18 14:59:39 +02:00
shopping_list.py
sisyphus.py async_create_task () 2018-10-02 11:03:09 +02:00
skybell.py
sleepiq.py More pylint 2 fixes () 2018-07-20 11:45:20 +03:00
smappee.py Pass hass_config to load_platform () 2018-10-29 19:21:21 +01:00
snips.py Upgrade flake8 to 3.6.0 () 2018-10-25 23:15:20 +03:00
spaceapi.py
spc.py Pass hass_config to load_platform () 2018-10-29 19:21:21 +01:00
spider.py Pass hass_config to load_platform () 2018-10-29 19:21:21 +01:00
splunk.py Remove homeassistant.remote () 2018-08-21 15:49:58 +02:00
statsd.py
sun.py Use const.SUN_EVENT_* more () 2018-10-31 09:10:28 +01:00
tado.py
tahoma.py Adding support for RTDSContactSensor and RTDSMotionSensor in Tahoma … (RTS Alarms sensors and contacts for Somfy Protexiom alarms) () 2018-09-14 13:31:08 -06:00
tellduslive.py Fix device telldus () 2018-08-27 21:56:28 +02:00
tellstick.py Async syntax 8/8 () 2018-10-01 08:52:42 +02:00
tesla.py
thethingsnetwork.py Async syntax 8/8 () 2018-10-01 08:52:42 +02:00
thingspeak.py
toon.py Upgrade toonlib to 1.1.3 () 2018-11-04 17:22:03 +01:00
tplink_lte.py Implemented tplink_lte components and notify service via SMS () 2018-11-05 02:09:29 +01:00
tuya.py async_create_task () 2018-10-02 11:03:09 +02:00
upcloud.py Async syntax 8/8 () 2018-10-01 08:52:42 +02:00
updater.py Fix venv check () 2018-10-29 15:50:44 +01:00
usps.py More pylint 2 fixes () 2018-07-20 11:45:20 +03:00
velbus.py Remove Velbus climate platform () 2018-11-08 11:17:44 +01:00
velux.py Use async_create_task () 2018-07-23 14:05:38 +02:00
vera.py Add unique_id to Vera entities () 2018-10-16 23:27:57 +02:00
verisure.py vsure version 1.5.0 () 2018-10-07 12:33:16 +02:00
volvooncall.py Pylint cleanups () 2018-07-23 10:16:05 +02:00
vultr.py More pylint 2 fixes () 2018-07-20 11:45:20 +03:00
w800rf32.py W800rf32 () 2018-11-08 18:49:00 +01:00
wake_on_lan.py Async syntax 8/8 () 2018-10-01 08:52:42 +02:00
waterfurnace.py Grammar and spelling fixes () 2018-08-19 22:29:08 +02:00
watson_iot.py
webhook.py Webhook names () 2018-11-05 09:23:58 +01:00
weblink.py
wemo.py WeMo - Change name of discovery option () 2018-11-10 08:17:24 +01:00
wirelesstag.py Show battery_level as a percent vs a decimal () 2018-11-10 21:30:03 +01:00
xiaomi_aqara.py Add some new model names of Xiaomi Aqara devices () 2018-10-08 09:32:01 +02:00
zabbix.py
zeroconf.py Upgrade zeroconf to 0.21.3 () 2018-09-23 09:50:59 +02:00
zigbee.py Update name (fixes ) () 2018-10-24 18:59:52 +02:00