hass-core/tests/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
..
alarm_control_panel Fix MQTT retained message not being re-dispatched (#12004) 2018-02-11 09:17:58 -08:00
alexa Use hue/sat as internal light color interface (#11288) 2018-03-18 15:00:29 -07:00
automation Spelling fixes (#12041) 2018-01-29 23:37:19 +01:00
binary_sensor Rename homeassistant.util.async to .async_ (#13088) 2018-03-11 10:01:12 -07:00
calendar Fix Google Calendar caching when offline (#13375) 2018-03-26 18:10:22 -07:00
camera Fix aiohttp deprecation warnings (#13240) 2018-03-15 21:49:49 +01: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 Fix aiohttp deprecation warnings (#13240) 2018-03-15 21:49:49 +01:00
counter Move counter component (#10332) 2017-11-05 13:51:52 +01:00
cover Added cover.group platform (replaces #12303) (#12692) 2018-03-15 12:31:31 +01:00
device_tracker Fix aiohttp deprecation warnings (#13240) 2018-03-15 21:49:49 +01:00
emulated_hue Removed the google home warning from emulated_hue (#13436) 2018-03-25 00:45:25 -07:00
fan Add missing availability schema to MQTT alarm panel (#11829) 2018-01-20 17:11:04 +01:00
google_assistant Merge remote-tracking branch 'origin/master' into dev 2018-03-22 10:20:35 -07:00
group Keep auto groups during group reload (#12841) 2018-03-02 11:29:49 -08:00
hassio Fix aiohttp deprecation warnings (#13240) 2018-03-15 21:49:49 +01:00
homekit HomeKit: Bugfix & improved logging (#13431) 2018-03-25 12:53:15 +02:00
http Fix aiohttp deprecation warnings (#13240) 2018-03-15 21:49:49 +01:00
hue Upgrade aiohue and fix race condition (#13475) 2018-03-26 16:07:22 -07:00
image_processing OpenALPR Cloud API - transfer image in body of POST request (#12112) 2018-02-02 14:19:13 +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 23:25:28 +02:00
mailbox Fix aiohttp deprecation warnings (#13240) 2018-03-15 21:49:49 +01:00
media_player Cast Integration Cleanup (#13275) 2018-03-23 14:02:52 -07:00
mqtt Fix aiohttp deprecation warnings (#13240) 2018-03-15 21:49:49 +01:00
notify Fix aiohttp deprecation warnings (#13240) 2018-03-15 21:49:49 +01:00
persistent_notification Change persistent notification to avoid long text in entity state (#9967) 2017-10-21 21:59:05 +02:00
recorder Remove automatic sqlite vacuum (#12728) 2018-02-26 22:41:37 -08:00
remote Remove execution file perm (#11563) 2018-01-09 23:55:14 -08:00
scene Add voluptuous config validation to scenes (#6830) 2017-03-28 23:39:53 -07:00
sensor Add language parameter to darksky sensor (#13297) 2018-03-22 13:34:02 +01:00
switch Rename homeassistant.util.async to .async_ (#13088) 2018-03-11 10:01:12 -07:00
timer Move timer into correct folder (#10324) 2017-11-03 21:10:08 -07:00
tts Spelling fixes (#11940) 2018-01-27 11:58:27 -08:00
vacuum Xiaomi MiIO Vacuum: Use a unique data key per domain (#12743) 2018-02-28 13:15:45 -08:00
weather Cast return values and add unit tests for the yahoo weather component. (#10699) 2018-01-11 15:42:51 -08:00
zwave Bugfix: Zwave set_config_parameter failed when config list contained int (#13301) 2018-03-20 14:04:24 +01:00
__init__.py Fix PEP257 issues 2016-03-09 10:25:50 +01:00
test_alert.py Spelling fixes (#12041) 2018-01-29 23:37:19 +01:00
test_api.py Fix aiohttp deprecation warnings (#13240) 2018-03-15 21:49:49 +01:00
test_canary.py Flake8 bugbear fixes (#12072) 2018-01-30 14:44:05 -08:00
test_config_entry_example.py Initial support for Config Entries (#12079) 2018-02-16 14:07:38 -08:00
test_configurator.py Convert configurator to use markdown (#10668) 2017-11-20 14:11:55 +01:00
test_conversation.py Fix aiohttp deprecation warnings (#13240) 2018-03-15 21:49:49 +01:00
test_datadog.py Remove more test requirements (#7574) 2017-05-13 21:25:54 -07:00
test_demo.py Add history_graph component to demo (#12681) 2018-02-26 00:28:25 -08:00
test_device_sun_light_trigger.py Fix tests (#7659) 2017-05-19 07:37:39 -07:00
test_dialogflow.py Spelling fixes (#11940) 2018-01-27 11:58:27 -08:00
test_discovery.py Update netdisco (#7563) 2017-05-12 20:14:17 -07:00
test_duckdns.py Add DuckDNS component (#9556) 2017-09-24 15:48:45 -07:00
test_dyson.py Add support to Dyson 360 Eye robot vacuum using new vacuum platform (#8852) 2017-08-06 13:08:46 +02:00
test_ffmpeg.py Spelling fixes (#12041) 2018-01-29 23:37:19 +01:00
test_frontend.py Fix aiohttp deprecation warnings (#13240) 2018-03-15 21:49:49 +01:00
test_google.py assertEquals is deprecated (#7777) 2017-05-25 22:21:22 -07:00
test_google_domains.py Add Google Domains component (#9996) 2017-10-25 11:42:53 +02:00
test_graphite.py Split bootstrap into bs + setup (#6416) 2017-03-05 10:41:54 +01:00
test_history.py Fix logbook JSON serialize issue (#13229) 2018-03-15 10:54:22 -07:00
test_history_graph.py Add history_graph component (#9472) 2017-09-23 10:01:48 -07:00
test_influxdb.py InfluxDB cleanups (#12903) 2018-03-04 21:01:16 +01:00
test_init.py Rename homeassistant.util.async to .async_ (#13088) 2018-03-11 10:01:12 -07:00
test_input_boolean.py Initial state over restore state (#6924) 2017-04-04 09:29:49 -07:00
test_input_datetime.py Correct input_datetime initial value parsing (#10417) 2017-11-15 23:16:22 -08:00
test_input_number.py Added increment + decrement to input_number (#9870) 2017-10-25 15:25:33 +02:00
test_input_select.py Initial state over restore state (#6924) 2017-04-04 09:29:49 -07:00
test_input_text.py Added password mode to input_text (obscure content of text box) (#11849) 2018-02-08 12:29:33 +01:00
test_intent_script.py Add Intent component (#8434) 2017-07-21 21:38:53 -07:00
test_introduction.py Split bootstrap into bs + setup (#6416) 2017-03-05 10:41:54 +01:00
test_kira.py Add Kira component to sensor and remote platforms (#7479) 2017-05-12 21:12:47 -07:00
test_litejet.py Fix up docstring for tests (#5090) 2016-12-28 20:04:59 +02:00
test_logbook.py Fix logbook JSON serialize issue (#13229) 2018-03-15 10:54:22 -07:00
test_logentries.py Split bootstrap into bs + setup (#6416) 2017-03-05 10:41:54 +01:00
test_logger.py Split bootstrap into bs + setup (#6416) 2017-03-05 10:41:54 +01:00
test_melissa.py Add Melissa (HVAC/climate) component (#11503) 2018-02-03 03:17:01 +01:00
test_microsoft_face.py Support adding different server locations for Microsoft face component (#7532) 2017-05-12 10:53:25 +02:00
test_mqtt_eventstream.py Allow ignoring call service events in mqtt_eventstream (#12519) 2018-02-22 11:19:18 +01:00
test_mqtt_statestream.py Add include/exclude filter to mqtt_statestream (#10354) 2017-11-08 15:54:12 +01:00
test_namecheapdns.py Make host optional (#10063) 2017-10-23 15:24:04 +02:00
test_no_ip.py Support for NO-IP (#10155) 2017-10-27 10:15:47 +02:00
test_nuheat.py tests: Use assertEqual instead of deprecated assertEquals (#11943) 2018-01-27 12:18:02 +01:00
test_panel_custom.py Fix panel_custom (#10303) 2017-11-03 10:28:31 +01:00
test_panel_iframe.py Fix Panel_IFrame - FTP URL not allowed in 0.63 (#12295) 2018-02-11 09:19:31 -08:00
test_pilight.py Updates default Pilight port number (#13419) 2018-03-23 23:22:33 +01:00
test_plant.py Spelling fixes (#12041) 2018-01-29 23:37:19 +01:00
test_prometheus.py Fix aiohttp deprecation warnings (#13240) 2018-03-15 21:49:49 +01:00
test_proximity.py Split bootstrap into bs + setup (#6416) 2017-03-05 10:41:54 +01:00
test_python_script.py Fix time functions would throw errors in python scripts (#11414) 2018-01-07 01:50:55 +01:00
test_remember_the_milk.py Spelling fixes (#12041) 2018-01-29 23:37:19 +01:00
test_rest_command.py Add custom header support for rest_command (#12646) 2018-02-28 08:16:31 +02:00
test_rflink.py Update voluputous (#12463) 2018-02-17 10:29:14 +01:00
test_rfxtrx.py Split bootstrap into bs + setup (#6416) 2017-03-05 10:41:54 +01:00
test_ring.py Fix aiohttp deprecation warnings (#13240) 2018-03-15 21:49:49 +01:00
test_rss_feed_template.py Fix aiohttp deprecation warnings (#13240) 2018-03-15 21:49:49 +01:00
test_script.py Group service / dynamic handling (#7971) 2017-06-16 00:52:28 +02:00
test_shell_command.py Fix broken tests (#11395) 2018-01-01 14:30:09 -08:00
test_shopping_list.py Fix aiohttp deprecation warnings (#13240) 2018-03-15 21:49:49 +01:00
test_sleepiq.py aiohttp 2 (#6835) 2017-03-30 00:50:53 -07:00
test_snips.py Snips: (change) Removed unknown intent speech response (#11776) 2018-01-18 22:01:04 -08:00
test_spc.py Add attribute to show who last un/set alarm (SPC) (#9906) 2017-11-11 12:36:03 -08:00
test_splunk.py splunk: Handle datetime objects in event payload (#9628) 2017-09-30 09:35:25 +02:00
test_statsd.py Adding support for mapping keys to value in statsd (#8665) 2017-07-27 08:58:34 +02:00
test_sun.py Refactor sun component for correctness (#7295) 2017-05-09 00:03:34 -07:00
test_system_log.py Fix aiohttp deprecation warnings (#13240) 2018-03-15 21:49:49 +01:00
test_updater.py Core support for hass.io calls & Bugfix check_config (#11571) 2018-01-12 15:29:58 +01:00
test_upnp.py Allow specifying multiple ports for UPNP component (#9560) 2017-09-24 13:08:58 -07:00
test_vultr.py Fix vultr tests (#11477) 2018-01-05 16:34:03 -08:00
test_wake_on_lan.py New service send_magic_packet with new component wake_on_lan (#8397) 2017-07-10 18:37:51 -07:00
test_weblink.py Fix config error for FTP links, add test (#12294) 2018-02-11 09:19:00 -08:00
test_websocket_api.py Fix aiohttp deprecation warnings (#13240) 2018-03-15 21:49:49 +01:00
test_zone.py Split bootstrap into bs + setup (#6416) 2017-03-05 10:41:54 +01:00