hass-core/homeassistant/components
Philip Rosenberg-Watt 81cf0dacfe Fix Google Calendar caching when offline (#13375)
* Fix Google Calendar caching when offline

Events from Google Calendar were not firing under the following
circumstances:

1. Start ha as normal with Google Calendar configured as per
   instructions.
2. ha loses network connectivity to Google
3. ha attempts update of Google Calendar
4. calendar/google component throws uncaught Exception causing update
   method to not return
5. (cached) Google Calendar event does not fire, remains "Off"

Catching the Exception and returning False from the update() method
causes the correct behavior (i.e., the calendar component firing the
event as scheduled using cached data).

* Add requirements

* Revert code cleanup

* Remove explicit return value from update()

* Revert "Remove explicit return value from update()"

This reverts commit 7cd77708af.

* Use MockDependency decorator

No need to whitelist google-python-api-client for a single unit test at
this point.
2018-03-26 18:10:22 -07:00
..
ads Fixes for PEP257 (#11810) 2018-01-20 22:35:38 -08:00
alarm_control_panel Update total_connect_client to 0.17 for Honeywell L5100-WiFi Support (#13473) 2018-03-26 21:32:38 +02:00
alexa Use hue/sat as internal light color interface (#11288) 2018-03-18 15:00:29 -07:00
automation Clean up entity component (#11691) 2018-01-22 22:54:41 -08:00
binary_sensor Update to new "b2vapi" of BMW ConnectedDrive (#13305) 2018-03-24 12:16:49 +01:00
calendar Fix Google Calendar caching when offline (#13375) 2018-03-26 18:10:22 -07:00
camera Switched to async/await. Bumped pyxeoma version (#13404) 2018-03-23 10:22:01 -07:00
climate Add ecobee fan mode (#12732) 2018-03-18 09:02:07 -07:00
cloud Google assistant sync (#13392) 2018-03-23 12:13:52 -07:00
config Add config flow for Hue (#12830) 2018-03-03 21:28:04 -08:00
config_entry_example Update translations 2018-03-23 14:15:44 -07:00
counter Lazy loading of service descriptions (#11479) 2018-01-07 14:54:16 -08:00
cover Fix current_cover_position (#13135) 2018-03-23 13:54:19 -07:00
deconz deCONZ - Add support for consumption and power sensors (#13218) 2018-03-14 20:07:37 -07:00
device_tracker Fix encoding errors in mikrotik device tracker (#13464) 2018-03-25 18:23:32 -07:00
emulated_hue Removed the google home warning from emulated_hue (#13436) 2018-03-25 00:45:25 -07:00
fan Xiaomi MiIO Fan: Xiaomi Air Humidifier integration (#12627) 2018-03-24 23:04:43 +01:00
frontend Bump frontend to 20180326.0 2018-03-25 18:10:59 -07:00
google_assistant Do not include unavailable entities in Google Assistant SYNC (#13358) 2018-03-20 18:09:34 -07:00
group Rename homeassistant.util.async to .async_ (#13088) 2018-03-11 10:01:12 -07:00
hassio Change Hass.io icon to home-assistant (#13230) 2018-03-14 20:56:56 -07:00
homekit HomeKit: Bugfix & improved logging (#13431) 2018-03-25 18:23:30 -07:00
homematic Security fix & lock for HomeMatic (#11980) 2018-03-25 18:23:29 -07:00
http Upgrade aiohttp_cors to 0.7.0 (#13289) 2018-03-17 17:37:53 +01:00
hue Upgrade aiohue and fix race condition (#13475) 2018-03-26 16:07:22 -07:00
ihc Updated to use latest ihcsdk version (#12865) 2018-03-03 12:48:58 +01:00
image_processing Upgrade numpy to 1.14.2 (#13291) 2018-03-17 17:40:31 +01:00
light Hue: Convert XY to HS color if HS not present (#13465) 2018-03-26 14:00:56 -07:00
lock Security fix & lock for HomeMatic (#11980) 2018-03-25 18:23:29 -07:00
mailbox Spelling fixes (#12041) 2018-01-29 23:37:19 +01:00
media_player Fix ID (fixes #13444) (#13471) 2018-03-26 16:08:44 -07:00
mqtt Support MQTT Lock discovery (#13303) 2018-03-18 09:26:07 -07:00
notify Cache LaMetric devices for offline use (#13379) 2018-03-23 18:10:52 +01:00
persistent_notification Lazy loading of service descriptions (#11479) 2018-01-07 14:54:16 -08:00
recorder Upgrade sqlalchemy to 1.2.5 (#13292) 2018-03-17 17:39:24 +01:00
remember_the_milk Clean up entity component (#11691) 2018-01-22 22:54:41 -08:00
remote Xiaomi MiIO Remote: Unique id added (#13266) 2018-03-16 21:15:23 +01:00
scene deConz rewrite to use async await syntax (#13151) 2018-03-13 08:47:45 +01:00
sensor Fixing odometer to display km (#13427) 2018-03-25 00:46:47 -07:00
switch Make Telnet Switch value template optional (#13433) 2018-03-26 18:22:21 +02:00
system_log Fix logger bug on Windows: path contains '\'. (#12197) 2018-02-06 12:56:31 -08:00
telegram_bot Add send sticker service to telegram bot (#13387) 2018-03-23 19:16:57 +01:00
timer Lazy loading of service descriptions (#11479) 2018-01-07 14:54:16 -08:00
tts Upgrade pylint to 1.8.2 (#12274) 2018-02-11 09:20:28 -08:00
vacuum python-miio version bumped. (#13055) 2018-03-10 09:11:10 -08:00
weather Upgrade python-forecastio to 1.4.0 (#13282) 2018-03-17 17:43:07 +01:00
wink Use request.query (#13037) 2018-03-10 00:36:20 -08:00
zha Zigbee fan (#12289) 2018-03-18 09:17:56 -07:00
zwave Bugfix: Zwave set_config_parameter failed when config list contained int (#13301) 2018-03-20 14:04:24 +01:00
__init__.py Add optional words to conversation utterances (#12772) 2018-03-01 07:35:12 -08:00
abode.py Upgrade pylint to 1.8.2 (#12274) 2018-02-11 09:20:28 -08:00
alarmdecoder.py Alarmdecoder add validation of the zone types (#11488) 2018-01-11 13:53:14 -08:00
alert.py Update voluputous (#12463) 2018-02-17 10:29:14 +01:00
amcrest.py Update voluputous (#12463) 2018-02-17 10:29:14 +01:00
android_ip_webcam.py Update voluputous (#12463) 2018-02-17 10:29:14 +01:00
apcupsd.py Spelling fixes (#12041) 2018-01-29 23:37:19 +01:00
api.py Upgrade to aiohttp 3 (#12921) 2018-03-05 13:28:41 -08:00
apple_tv.py Update voluputous (#12463) 2018-02-17 10:29:14 +01:00
arduino.py Supress trackback and upgrade PyMata to 2.14 (#7176) 2017-04-19 12:48:15 +02:00
arlo.py Revert throttle Arlo api calls (#13174) 2018-03-13 14:12:28 -07:00
asterisk_mbox.py Update header and make it less verbose (#11774) 2018-01-18 23:04:18 +01:00
august.py Fix issue with guest August lock being included (#12893) 2018-03-04 10:14:47 +01:00
axis.py Fixes for PEP257 (#11810) 2018-01-20 22:35:38 -08:00
bbb_gpio.py Update docstrings (#7361) 2017-04-29 22:04:49 -07:00
blink.py Blink version bump (#7571) 2017-05-12 20:30:07 -07:00
bloomsky.py Use constants for HTTP headers (#10313) 2017-11-04 12:04:05 -07:00
bmw_connected_drive.py Update to new "b2vapi" of BMW ConnectedDrive (#13305) 2018-03-24 12:16:49 +01:00
browser.py Fix linting errors 2016-07-16 23:45:38 -07:00
canary.py Upgrade to py-canary 0.4.1 (#12894) 2018-03-04 10:19:12 +01:00
coinbase.py Update python-coinbase to 2.1.0 (#12925) 2018-03-05 22:26:37 +01:00
comfoconnect.py Fixes for PEP257 (#11810) 2018-01-20 22:35:38 -08:00
configurator.py Rename homeassistant.util.async to .async_ (#13088) 2018-03-11 10:01:12 -07:00
conversation.py Add optional words to conversation utterances (#12772) 2018-03-01 07:35:12 -08:00
daikin.py Added new climate component from Daikin (#10983) 2018-01-04 11:05:27 +01:00
datadog.py Fixes for PEP257 (#11810) 2018-01-20 22:35:38 -08:00
demo.py Add history_graph component to demo (#12681) 2018-02-26 00:28:25 -08:00
device_sun_light_trigger.py Refactor sun component for correctness (#7295) 2017-05-09 00:03:34 -07:00
dialogflow.py Clean up Alexa.intent and DialogFlow.intent (#11492) 2018-01-07 01:39:32 +01:00
digital_ocean.py Upgrade python-digitalocean to 1.13.2 (#11311) 2017-12-27 09:20:44 +01:00
discovery.py Adding a discoverable Samsung Syncthru Printer sensor platform (#13134) 2018-03-18 09:26:33 -07:00
dominos.py Upgrade pylint to 1.8.2 (#12274) 2018-02-11 09:20:28 -08:00
doorbird.py Added switch for DoorBird second relay (#13339) 2018-03-20 08:43:31 +01:00
downloader.py Add notifications to downloader.py (#12961) 2018-03-14 16:03:40 -07:00
duckdns.py Add link to docs and update ordering (#10062) 2017-10-23 12:18:23 +02:00
dweet.py Upgrade dweepy to 0.3.0 (#7550) 2017-05-11 22:48:03 +02:00
dyson.py Add support to Dyson 360 Eye robot vacuum using new vacuum platform (#8852) 2017-08-06 13:08:46 +02:00
ecobee.py Add ecobee fan mode (#12732) 2018-03-18 09:02:07 -07:00
egardia.py Fixing Egardia 'home armed' state not shown correctly. (#13335) 2018-03-22 10:53:52 -07:00
eight_sleep.py Spelling fixes (#12041) 2018-01-29 23:37:19 +01:00
emoncms_history.py Spelling fixes (#11940) 2018-01-27 11:58:27 -08:00
enocean.py Fix for API change of new enocean package (#10328) 2017-11-04 12:58:02 +01:00
envisalink.py Update to pyenvisalink 2.2, and remove range validation on zonedump i… (#8981) 2017-08-16 12:08:15 +02:00
feedreader.py Flake8 35 (#11972) 2018-01-29 00:23:53 -08:00
ffmpeg.py Lazy loading of service descriptions (#11479) 2018-01-07 14:54:16 -08:00
foursquare.py Lazy loading of service descriptions (#11479) 2018-01-07 14:54:16 -08:00
gc100.py Updated gc100 package requirement to 1.0.3a (#10484) 2017-11-09 17:54:45 +01:00
goalfeed.py Goalfeed channel (#12086) 2018-02-01 11:24:02 +01:00
google.py Spelling fixes (#12041) 2018-01-29 23:37:19 +01:00
google_domains.py Fix lint google-domains (#10135) 2017-10-25 15:43:02 +02:00
graphite.py Use const (#9127) 2017-08-25 13:30:00 +02:00
hdmi_cec.py Typing fixes (#12015) 2018-01-29 00:24:08 -08:00
history.py Fix history API (#13214) 2018-03-14 22:29:51 +01:00
history_graph.py Add history_graph component (#9472) 2017-09-23 10:01:48 -07:00
hive.py Fix for hive aux_heat target temperature display (#11884) 2018-01-23 16:16:38 -08:00
homematicip_cloud.py Cleanup homematicip_cloud (#13356) 2018-03-23 11:05:02 -07:00
ifttt.py Update docstrings (#7361) 2017-04-29 22:04:49 -07:00
influxdb.py InfluxDB cleanups (#12903) 2018-03-04 21:01:16 +01:00
input_boolean.py Spelling fixes (#12041) 2018-01-29 23:37:19 +01:00
input_datetime.py Bugfix: Input Datetime config schema (#12552) 2018-02-20 16:21:35 +01:00
input_number.py Lazy loading of service descriptions (#11479) 2018-01-07 14:54:16 -08:00
input_select.py Lazy loading of service descriptions (#11479) 2018-01-07 14:54:16 -08:00
input_text.py Added password mode to input_text (obscure content of text box) (#11849) 2018-02-08 12:29:33 +01:00
insteon_local.py Fixes for PEP257 (#11810) 2018-01-20 22:35:38 -08:00
insteon_plm.py Upgrade insteonplm to 0.8.2 (required refactoring) (#12534) 2018-02-25 20:13:39 +01:00
intent_script.py Add Intent component (#8434) 2017-07-21 21:38:53 -07:00
introduction.py Change introduction card to use persistent notification (#10265) 2017-11-01 09:10:36 +01:00
ios.py Flake8 bugbear fixes (#12072) 2018-01-30 14:44:05 -08:00
iota.py Upgrade pyota to 2.0.4 (#11991) 2018-01-28 18:04:54 +01:00
isy994.py Fix fix isy994 fan detection (#12595) 2018-02-21 22:20:40 -08:00
joaoapps_join.py Update join (#7443) 2017-05-04 13:14:14 -07:00
juicenet.py Grammar fix 'an unique' (#12870) 2018-03-03 19:23:55 +01:00
keyboard.py Comment out pyuserinput in requirements_all (#3307) 2016-09-11 21:59:48 -07:00
keyboard_remote.py Allow using more than one keyboard remote (#11061) 2017-12-13 20:07:23 -08:00
kira.py Fixes for PEP257 (#11810) 2018-01-20 22:35:38 -08:00
knx.py Fixes KNX fire event problem, issue https://github.com/home-assistant/home-assistant/issues/13049 (#13062) 2018-03-10 20:26:21 -08:00
lametric.py Fix lametric sound (#10562) 2017-11-14 10:40:44 +01:00
linode.py Linode (#9936) 2017-10-27 16:19:47 +02:00
lirc.py Upgrade pylint to 1.8.2 (#12274) 2018-02-11 09:20:28 -08:00
litejet.py Update docstrings (#7361) 2017-04-29 22:04:49 -07:00
logbook.py Fix logbook JSON serialize issue (#13229) 2018-03-15 10:54:22 -07:00
logentries.py Update docstrings (#7361) 2017-04-29 22:04:49 -07:00
logger.py Spelling fixes (#12041) 2018-01-29 23:37:19 +01:00
lutron.py Adding support for Lutron covers (#11602) 2018-01-13 19:11:20 +01:00
lutron_caseta.py upgrade to new pylutron_caseta with TLS (#10286) 2017-11-10 12:17:25 +01:00
mailgun.py Update mailgun (#7984) 2017-06-11 22:19:10 -07:00
map.py Change line separator to LN (#11662) 2018-01-15 14:24:12 -08:00
maxcube.py Remove superfluous comments and update ordering (#7227) 2017-04-22 21:13:04 +02:00
media_extractor.py Upgrade youtube_dl to 2018.03.10 (#13124) 2018-03-12 14:01:32 -07:00
melissa.py Fix mclimate accounts with not only melissa components (#12427) 2018-02-25 11:33:52 -08:00
mercedesme.py Fix MercedesMe - add check for unsupported features (#12342) 2018-02-12 21:07:20 -08:00
microsoft_face.py Spelling fixes (#11940) 2018-01-27 11:58:27 -08:00
mochad.py Bumped up pymochad requirement to 0.2.0 as a fix for #11928 (#12014) 2018-01-30 05:13:30 -08:00
modbus.py Lazy loading of service descriptions (#11479) 2018-01-07 14:54:16 -08:00
mqtt_eventstream.py Allow ignoring call service events in mqtt_eventstream (#12519) 2018-02-22 11:19:18 +01:00
mqtt_statestream.py Implement entity and domain exclude/include for Alexa (#10647) 2017-11-17 21:10:24 -08:00
mychevy.py Fixes for PEP257 (#11810) 2018-01-20 22:35:38 -08:00
mycroft.py Upgrade mycroftapi to 2.0 (#9309) 2017-09-05 07:05:31 -04:00
mysensors.py Python 3.5 adjustments (#13173) 2018-03-15 13:10:54 +02:00
namecheapdns.py Make host optional (#10063) 2017-10-23 15:24:04 +02:00
neato.py Fix for Neato D3 and D5 (#11775) 2018-01-18 23:37:24 +01:00
nest.py Update to latest python-nest (#12590) 2018-03-17 17:35:16 -07:00
netatmo.py Netatmo httperror403 fix (#10659) 2017-11-18 14:36:01 -08:00
no_ip.py Use constants for HTTP headers (#10313) 2017-11-04 12:04:05 -07:00
nuheat.py add a bit more test coverage 2017-12-26 11:12:28 -08:00
nuimo_controller.py Clean up requirements (#7391) 2017-05-02 09:15:02 -07:00
octoprint.py Catch everything when calling to OctoPrint API to fix #10557 (#11457) 2018-01-05 18:07:09 +01:00
panel_custom.py Fix panel_custom (#10303) 2017-11-03 21:18:32 -07:00
panel_iframe.py Fix Panel_IFrame - FTP URL not allowed in 0.63 (#12295) 2018-02-11 09:19:31 -08:00
pilight.py Updates default Pilight port number (#13419) 2018-03-23 23:22:33 +01:00
plant.py Upgrade pylint to 1.8.2 (#12274) 2018-02-11 09:20:28 -08:00
prometheus.py Support pushing all sensors and fix wrong metrics. (#11159) 2018-01-08 17:11:45 +01:00
proximity.py Update docstrings (#7361) 2017-04-29 22:04:49 -07:00
python_script.py Upgrade pylint to 1.8.2 (#12274) 2018-02-11 09:20:28 -08:00
qwikswitch.py Qwikswitch async & updates (#12641) 2018-03-25 23:32:13 +02:00
rainbird.py Spelling fixes (#12041) 2018-01-29 23:37:19 +01:00
raincloud.py Fixes for PEP257 (#11810) 2018-01-20 22:35:38 -08:00
raspihats.py Upgrade pylint to 1.8.2 (#12274) 2018-02-11 09:20:28 -08:00
rest_command.py Add custom header support for rest_command (#12646) 2018-02-28 08:16:31 +02:00
rflink.py Update voluputous (#12463) 2018-02-17 10:29:14 +01:00
rfxtrx.py Upgrade pylint to 1.8.2 (#12274) 2018-02-11 09:20:28 -08:00
ring.py Fix aiohttp deprecation warnings (#13240) 2018-03-15 21:49:49 +01:00
rpi_gpio.py Update docstrings (#7361) 2017-04-29 22:04:49 -07:00
rpi_pfio.py Support for the PiFace Digital I/O module (#7494) 2017-05-09 22:36:33 -07:00
rss_feed_template.py Remove ordered_dict validator (#7375) 2017-04-30 10:55:03 -07:00
satel_integra.py Added satel_integra alarm panel and binary sensor platform (#9336) 2017-09-18 17:42:31 +02:00
script.py Clean up entity component (#11691) 2018-01-22 22:54:41 -08:00
scsgate.py Spelling fixes (#12041) 2018-01-29 23:37:19 +01:00
services.yaml Xiaomi Aqara Gateway: Service descriptions added (#12631) 2018-02-23 22:33:51 +01:00
shell_command.py Make shell_command async (#10741) 2017-11-23 17:28:31 -08:00
shiftr.py Upgrade paho-mqtt to 1.3.1 (#9874) 2017-10-15 10:12:43 -07:00
shopping_list.py Upgrade to aiohttp 3 (#12921) 2018-03-05 13:28:41 -08:00
skybell.py Skybell (#9681) 2017-10-08 20:14:39 +02:00
sleepiq.py Upgrade pylint to 1.8.2 (#12274) 2018-02-11 09:20:28 -08:00
smappee.py added smappee component (#11491) 2018-02-18 14:34:28 -08:00
snips.py Spelling fixes (#12041) 2018-01-29 23:37:19 +01:00
spc.py asyncio.ensure_future Python 3.5 (#13141) 2018-03-12 19:42:08 +01:00
splunk.py Use constants for HTTP headers (#10313) 2017-11-04 12:04:05 -07:00
statsd.py Update voluputous (#12463) 2018-02-17 10:29:14 +01:00
sun.py Cleanup and simplitfy the async state update (#9390) 2017-09-12 10:01:03 +02:00
tado.py Tado fixes (#11294) 2018-02-02 17:28:54 -08:00
tahoma.py Unbreak tahoma (#12719) 2018-02-27 02:01:55 -08:00
tellduslive.py Upgrade pylint to 1.8.2 (#12274) 2018-02-11 09:20:28 -08:00
tellstick.py Update tellcore-net to 0.4 (#11087) 2017-12-11 18:32:48 +01:00
tesla.py Fixes for tesla. New sensors. (#12225) 2018-02-07 23:34:26 -08:00
thethingsnetwork.py Support for The Things Network (#9627) 2017-10-05 09:12:02 -07:00
thingspeak.py Upgrade thingspeak to 0.4.1 and use the correct API key (#5906) 2017-02-13 11:25:28 +01:00
toon.py Fix PEP8 and PEP257 issues (#10108) 2017-10-24 18:36:08 +02:00
tradfri.py Update pytradfri to 4.1.0 (#10521) 2017-11-22 09:37:20 +00:00
twilio.py Update docstrings (#6795) 2017-03-26 15:50:40 +02:00
upcloud.py upcloud: Provide unique ID for server entities (#13181) 2018-03-13 13:51:10 -07:00
updater.py Core support for hass.io calls & Bugfix check_config (#11571) 2018-01-12 15:29:58 +01:00
upnp.py Upgrade pylint to 1.8.2 (#12274) 2018-02-11 09:20:28 -08:00
usps.py bump usps version (#12465) 2018-02-17 21:49:32 -08:00
velbus.py Velbus (#8076) 2017-07-26 14:03:29 +02:00
velux.py Removing asyncio.coroutine syntax from some components (#12507) 2018-02-24 10:24:33 -08:00
vera.py Bump pyvera to 0.2.42. Improve event loop robustness. (#13095) 2018-03-11 12:43:28 -07:00
verisure.py Lazy loading of service descriptions (#11479) 2018-01-07 14:54:16 -08:00
volvooncall.py Upgrade pylint to 1.8.2 (#12274) 2018-02-11 09:20:28 -08:00
vultr.py Add platform and sensors for Vultr VPS (#9928) 2017-11-05 14:10:14 +01:00
wake_on_lan.py Upgrade wakeonlan to 1.0.0 (#12190) 2018-02-05 16:04:31 -08:00
waterfurnace.py Make waterfurnace recovery more robust (#12202) 2018-02-06 12:12:35 +01:00
weblink.py Fix config error for FTP links, add test (#12294) 2018-02-11 09:19:00 -08:00
websocket_api.py Remove crazy JSON encoding things that are no longer used (#13029) 2018-03-12 23:22:08 +01:00
wemo.py Wemo Dimmer Support (#10882) 2018-01-15 23:08:48 +01:00
xiaomi_aqara.py Don't call async from sync (#13057) 2018-03-10 10:02:16 -08:00
zabbix.py Show the error message when Zabbix fails to log in (#12985) 2018-03-08 15:25:10 -08:00
zeroconf.py Upgrade zeroconf to 0.20.0 (#13123) 2018-03-12 14:02:03 -07:00
zigbee.py Remove execution file perm (#11563) 2018-01-09 23:55:14 -08:00
zone.py Rename homeassistant.util.async to .async_ (#13088) 2018-03-11 10:01:12 -07:00
zoneminder.py Remove execution file perm (#11563) 2018-01-09 23:55:14 -08:00