hass-core/tests/components/sensor
Marcelo Moreira de Mello c22a73e1d0 Removed raise statement to don't pollute the user log. (#4536)
* Removed raise statement to don't polute the user log.
Only the error message should be displayed.

Nov 22 11:28:32 tchellopi hass[20138]: 16-11-22 11:28:32 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Nov 22 11:28:32 tchellopi hass[20138]: Traceback (most recent call last):
Nov 22 11:28:32 tchellopi hass[20138]: File "/usr/local/lib/python3.5/asyncio/tasks.py", line 241, in _step
Nov 22 11:28:32 tchellopi hass[20138]: result = coro.throw(exc)
Nov 22 11:28:32 tchellopi hass[20138]: File "/home/hass/.virtualenvs/home_assistant/lib/python3.5/site-packages/homeassistant/helpers/entity_component.py", line 386, in _update_entity_states
Nov 22 11:28:32 tchellopi hass[20138]: yield from update_coro
Nov 22 11:28:32 tchellopi hass[20138]: File "/home/hass/.virtualenvs/home_assistant/lib/python3.5/site-packages/homeassistant/helpers/entity.py", line 213, in async_update_ha_state
Nov 22 11:28:32 tchellopi hass[20138]: yield from self.hass.loop.run_in_executor(None, self.update)
Nov 22 11:28:32 tchellopi hass[20138]: File "/usr/local/lib/python3.5/asyncio/futures.py", line 361, in __iter__
Nov 22 11:28:32 tchellopi hass[20138]: yield self  # This tells Task to wait for completion.
Nov 22 11:28:32 tchellopi hass[20138]: File "/usr/local/lib/python3.5/asyncio/tasks.py", line 296, in _wakeup
Nov 22 11:28:32 tchellopi hass[20138]: future.result()
Nov 22 11:28:32 tchellopi hass[20138]: File "/usr/local/lib/python3.5/asyncio/futures.py", line 274, in result
Nov 22 11:28:32 tchellopi hass[20138]: raise self._exception
Nov 22 11:28:32 tchellopi hass[20138]: File "/usr/local/lib/python3.5/concurrent/futures/thread.py", line 55, in run
Nov 22 11:28:32 tchellopi hass[20138]: result = self.fn(*self.args, **self.kwargs)
Nov 22 11:28:32 tchellopi hass[20138]: File "/home/hass/.homeassistant/custom_components/sensor/wunderground.py", line 187, in update
Nov 22 11:28:32 tchellopi hass[20138]: self.rest.update()
Nov 22 11:28:32 tchellopi hass[20138]: File "/home/hass/.virtualenvs/home_assistant/lib/python3.5/site-packages/homeassistant/util/__init__.py", line 296, in wrapper
Nov 22 11:28:32 tchellopi hass[20138]: result = method(*args, **kwargs)
Nov 22 11:28:32 tchellopi hass[20138]: File "/home/hass/.homeassistant/custom_components/sensor/wunderground.py", line 222, in update
Nov 22 11:28:32 tchellopi hass[20138]: ["description"])
Nov 22 11:28:32 tchellopi hass[20138]: ValueError: you must supply a key

* Updated unittest since we are just printing the error instead raising
2016-11-22 23:41:51 -08:00
..
__init__.py Fix PEP257 issues 2016-03-09 10:25:50 +01:00
test_api_streams.py Add sensor to show how many clients are connected. (#4430) 2016-11-17 21:54:47 -08:00
test_command_line.py Optimize template 2 (#3521) 2016-09-27 21:29:55 -07:00
test_darksky.py Continue on invalid platforms and new setup_component unit tests (#3736) 2016-10-08 11:27:35 -07:00
test_dsmr.py DSMR sensor (#4309) 2016-11-22 23:03:39 -08:00
test_imap_email_content.py Lazy initialise the worker pool (#4110) 2016-10-31 08:47:29 -07:00
test_mfi.py Removing calls to mock.assert_called_once_with (#3896) 2016-10-16 16:13:27 -07:00
test_min_max.py New config parameter for min_max sensor to specify number of digits for rounding mean value (#4237) 2016-11-22 15:36:29 +01:00
test_moldindicator.py Use setup_component in tests (#3414) 2016-09-17 10:29:58 -07:00
test_mqtt.py Async bootstrap / component init (#3991) 2016-10-27 00:16:23 -07:00
test_mqtt_room.py Use setup_component in tests (#3414) 2016-09-17 10:29:58 -07:00
test_pilight.py Use voluptuous for Pilight switch (#3819) 2016-10-31 13:18:47 +01:00
test_random.py Lazy initialise the worker pool (#4110) 2016-10-31 08:47:29 -07:00
test_rest.py Added tests for REST sensors (#4115) 2016-10-30 21:51:03 -07:00
test_rfxtrx.py Lazy initialise the worker pool (#4110) 2016-10-31 08:47:29 -07:00
test_sleepiq.py Continue on invalid platforms and new setup_component unit tests (#3736) 2016-10-08 11:27:35 -07:00
test_sonarr.py Skip broken tests (#4543) 2016-11-22 22:58:14 -08:00
test_statistics.py Statistics sensor (#3513) 2016-10-04 01:04:00 -07:00
test_tcp.py Migrate to voluptuous (#3748) 2016-10-21 21:14:35 -07:00
test_template.py Continue on invalid platforms and new setup_component unit tests (#3736) 2016-10-08 11:27:35 -07:00
test_worldclock.py Add test (#3999) 2016-10-24 22:01:38 -07:00
test_wunderground.py Removed raise statement to don't pollute the user log. (#4536) 2016-11-22 23:41:51 -08:00
test_yahoo_finance.py Allow multiple symbols (sensor.yahoo_finance) (#4126) 2016-10-31 13:31:09 +01:00
test_yr.py Async version of Yr.no (#4158) 2016-11-02 19:34:12 -07:00