core/tests/components
ehendrix23 daf9d28565 Fix mold_indicator errors at startup (#17346)
* Initial changes to resolve issue 16733

Added logic to ensure that if the state is unknown during startup that the error about being unable to parse the value is not logged.
Further,  also ensured that if an attribute is set to None it does not try to convert the None value to Fahrenheit as that will cause an error.

* Cleaned up and added few comments

Cleaned up some lines based on flake8 and pylint.
Added some comment lines on the items added.

* Changed to async and using async_added_to_hass

Changed sensor to use async.
Registering state tracking for sensors and initial setup is now done upon the home assistant start event.

* Updated test and small fix

Updated test to handle unavailable state of sensor and return of None for attributes when data is unavailable.
Ensured that atributes are set to None when state is unavailable due to incorrect data.

* Fixed some flake8 issues in test

Fixed some flake8 issues in test_moldindicator.py.

* Updates based on review

Updates based on review from MartinHjelmare

* Added sensor entity_id to logger errors

Added sensor entity_id to logger error messages
Update test to use constant STATE_UNKNOWN instead of fixed string.
2018-10-17 18:42:39 +02:00
..
alarm_control_panel Init sub-components using global var. (#17220) 2018-10-07 23:30:09 +02:00
alexa Remove unit_of_measurement from climate entities (#16012) 2018-08-22 09:17:29 +02:00
auth Track refresh token last usage information (#16408) 2018-09-12 13:24:16 +02:00
automation Add a webhook automation trigger (#17246) 2018-10-08 20:16:37 +02:00
binary_sensor Add support for off_delay to MQTT binary_sensor (#16993) 2018-10-11 19:14:23 +02:00
calendar Grammar and spelling fixes (#16065) 2018-08-19 22:29:08 +02:00
camera Break up websocket component (#17003) 2018-10-01 11:21:00 +02:00
cast Add confirmation to Cast/Sonos/iOS config entries (#16769) 2018-09-21 16:34:37 +02:00
climate WIP: Don't set initial values for MQTT HVAC in non-optimistic mode (#17268) 2018-10-10 14:06:53 +02:00
cloud Add another 3 days leeway to give time for payment processing times (#17542) 2018-10-17 10:45:01 +02:00
config Add group foundation (#16935) 2018-10-08 16:35:38 +02:00
counter Fix counter restore. (#17101) 2018-10-03 23:12:21 +02:00
cover Add device registry to MQTT cover (#17245) 2018-10-08 16:13:44 +02:00
deconz deCONZ cover support (#16759) 2018-09-21 19:59:20 +02:00
device_tracker Update pydocstyle to 2.1.1 and flake8-docstrings to 1.3.0 (#14557) 2018-08-24 10:28:43 +02:00
emulated_hue block external IP (#17248) 2018-10-08 20:50:24 +02:00
fan Add device registry to MQTT fan (#17250) 2018-10-09 10:13:42 +02:00
frontend Break up websocket component (#17003) 2018-10-01 11:21:00 +02:00
geo_location NSW Rural Fire Service platform (#16802) 2018-10-14 14:11:25 +02:00
google_assistant Use HA native OAuth2 flow for google assistant components (#16848) 2018-09-26 08:57:55 +02:00
group Add optional "all" parameter for groups (#17179) 2018-10-09 10:14:55 +02:00
hangouts Hangouts (#16049) 2018-08-24 10:39:35 +02:00
hassio Hass.io auth/sso part2 (#17324) 2018-10-11 10:55:38 +02:00
homekit Add LogBook support to HomeKit (#17180) 2018-10-16 13:32:53 +02:00
homematicip_cloud Add HomematicIP alarm control panel (#15342) 2018-07-13 03:57:41 +02:00
http Update pydocstyle to 2.1.1 and flake8-docstrings to 1.3.0 (#14557) 2018-08-24 10:28:43 +02:00
hue Remove discovery (#17070) 2018-10-04 16:04:44 +02:00
ifttt Add webhook + IFTTT example (#16817) 2018-09-30 14:45:48 +02:00
image_processing Remove service helper (3) (#16879) 2018-09-26 08:50:05 +02:00
ios Add confirmation to Cast/Sonos/iOS config entries (#16769) 2018-09-21 16:34:37 +02:00
light Add support for HS color to mqtt light (#16958) 2018-10-08 15:36:57 +02:00
lock Template Lock (#17288) 2018-10-11 12:53:54 +02:00
lovelace Adding id to lovelace cards in ui-lovelace.yaml (#17498) 2018-10-17 16:31:06 +02:00
mailbox Add Call Data Log platform. Mailboxes no longer require media (#16579) 2018-09-21 11:55:12 +02:00
media_player State is set to UNKNOWN rather than ON in order to make UI have an play/pause button (#17357) 2018-10-15 11:42:27 +02:00
mqtt Support abbreviations in discovery topic (#16635) 2018-10-12 08:51:16 +02:00
nest Show notification when user configures Nest client_id/secret (#14970) 2018-06-15 15:19:58 -04:00
notify notify.homematic (#16973) 2018-10-12 09:36:52 +02:00
onboarding Add onboarding support (#15492) 2018-07-17 10:49:15 +02:00
openuv Clean up OpenUV config flow (#17349) 2018-10-15 13:21:21 -06:00
persistent_notification Add time created to persistent notifications. (#17121) 2018-10-04 10:24:14 +02:00
recorder Remove homeassistant.remote (#16099) 2018-08-21 15:49:58 +02:00
remote Remove service helper (4) (#16892) 2018-09-26 18:02:05 +02:00
scene Remove service helper (5) (#16917) 2018-09-27 23:13:11 +02:00
sensor Fix mold_indicator errors at startup (#17346) 2018-10-17 18:42:39 +02:00
simplisafe Add config entry for SimpliSafe (#17148) 2018-10-12 19:07:47 +02:00
smhi Swedish weather institute weather component (#16717) 2018-10-08 23:54:55 +02:00
sonos Add confirmation to Cast/Sonos/iOS config entries (#16769) 2018-09-21 16:34:37 +02:00
switch UniFi POE control (#17011) 2018-10-16 10:35:35 +02:00
timer Move timer into correct folder (#10324) 2017-11-03 21:10:08 -07:00
tradfri Allow tradfri groups for new imported entries (#17310) 2018-10-11 10:37:34 +02:00
tts Add a base_url configuration setting to tts. (#16478) 2018-09-10 11:50:25 +02:00
unifi UniFi POE control (#17011) 2018-10-16 10:35:35 +02:00
upnp Changes after review by @MartinHjelmare 2018-10-01 19:26:43 +02:00
vacuum Remove service helper (4) (#16892) 2018-09-26 18:02:05 +02:00
water_heater Water heater support (#17058) 2018-10-08 10:38:07 +02:00
weather Swedish weather institute weather component (#16717) 2018-10-08 23:54:55 +02:00
websocket_api Break up websocket 2 (#17028) 2018-10-01 16:09:31 +02:00
zone Grammar and spelling fixes (#16065) 2018-08-19 22:29:08 +02:00
zwave Z-Wave Device Registry Support (#17291) 2018-10-16 14:58:25 +02:00
__init__.py
conftest.py Break up websocket 2 (#17028) 2018-10-01 16:09:31 +02:00
huawei_lte.py Small huawei_lte improvements (#16626) 2018-09-15 10:42:36 +03:00
test_alert.py Remove alert service helper (#17038) 2018-10-02 00:33:45 +02:00
test_api.py Update pydocstyle to 2.1.1 and flake8-docstrings to 1.3.0 (#14557) 2018-08-24 10:28:43 +02:00
test_canary.py Add support for Canary Flex (#13280) 2018-03-30 23:38:29 +02:00
test_configurator.py Grammar and spelling fixes (#16065) 2018-08-19 22:29:08 +02:00
test_conversation.py rewrite hangouts to use intents instead of commands (#16220) 2018-08-28 00:20:12 +02:00
test_datadog.py Grammar and spelling fixes (#16065) 2018-08-19 22:29:08 +02:00
test_demo.py Remove homeassistant.remote (#16099) 2018-08-21 15:49:58 +02:00
test_device_sun_light_trigger.py Remove service helper (5) (#16917) 2018-09-27 23:13:11 +02:00
test_dialogflow.py Spelling fixes (#11940) 2018-01-27 11:58:27 -08:00
test_discovery.py Update pydocstyle to 2.1.1 and flake8-docstrings to 1.3.0 (#14557) 2018-08-24 10:28:43 +02:00
test_duckdns.py Remove service helper (3) (#16879) 2018-09-26 08:50:05 +02:00
test_dyson.py Grammar and spelling fixes (#16065) 2018-08-19 22:29:08 +02:00
test_feedreader.py avoid error in debug log mode and rss entry without title (#16316) 2018-08-31 12:54:25 +02:00
test_ffmpeg.py Remove service helper (8) (#17055) 2018-10-02 10:23:37 +02:00
test_folder_watcher.py Grammar and spelling fixes (#16065) 2018-08-19 22:29:08 +02:00
test_freedns.py Add FreeDNS component (#13526) 2018-03-30 21:33:30 +02:00
test_google.py Grammar and spelling fixes (#16065) 2018-08-19 22:29:08 +02:00
test_google_domains.py Add Google Domains component (#9996) 2017-10-25 11:42:53 +02:00
test_graphite.py Grammar and spelling fixes (#16065) 2018-08-19 22:29:08 +02:00
test_history.py Grammar and spelling fixes (#16065) 2018-08-19 22:29:08 +02:00
test_history_graph.py Grammar and spelling fixes (#16065) 2018-08-19 22:29:08 +02:00
test_influxdb.py Grammar and spelling fixes (#16065) 2018-08-19 22:29:08 +02:00
test_init.py Manual updates (#17278) 2018-10-09 16:54:38 +02:00
test_input_boolean.py Remove service helper (3) (#16879) 2018-09-26 08:50:05 +02:00
test_input_datetime.py Add recent context (#15989) 2018-08-20 17:39:53 +02:00
test_input_number.py Remove service helper (3) (#16879) 2018-09-26 08:50:05 +02:00
test_input_select.py Remove unused legacy test helper methods (#16893) 2018-09-26 18:03:13 +02:00
test_input_text.py Remove service helper (3) (#16879) 2018-09-26 08:50:05 +02:00
test_intent_script.py Add Intent component (#8434) 2017-07-21 21:38:53 -07:00
test_introduction.py Grammar and spelling fixes (#16065) 2018-08-19 22:29:08 +02:00
test_kira.py Grammar and spelling fixes (#16065) 2018-08-19 22:29:08 +02:00
test_litejet.py Grammar and spelling fixes (#16065) 2018-08-19 22:29:08 +02:00
test_logbook.py Add LogBook support to HomeKit (#17180) 2018-10-16 13:32:53 +02:00
test_logentries.py Grammar and spelling fixes (#16065) 2018-08-19 22:29:08 +02:00
test_logger.py Grammar and spelling fixes (#16065) 2018-08-19 22:29:08 +02:00
test_melissa.py Add Melissa (HVAC/climate) component (#11503) 2018-02-03 03:17:01 +01:00
test_microsoft_face.py Remove service helper (8) (#17055) 2018-10-02 10:23:37 +02:00
test_mqtt_eventstream.py Remove homeassistant.remote (#16099) 2018-08-21 15:49:58 +02:00
test_mqtt_statestream.py Grammar and spelling fixes (#16065) 2018-08-19 22:29:08 +02: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 Add support for JS modules in custom panels (#16096) 2018-08-23 11:14:18 +02:00
test_panel_iframe.py Break up websocket 2 (#17028) 2018-10-01 16:09:31 +02:00
test_pilight.py Update pydocstyle to 2.1.1 and flake8-docstrings to 1.3.0 (#14557) 2018-08-24 10:28:43 +02:00
test_plant.py More pylint 2 fixes (#15565) 2018-07-20 11:45:20 +03:00
test_prometheus.py Adding 'namespace' for prometheus metrics (#13738) 2018-06-28 16:49:33 +02:00
test_proximity.py Grammar and spelling fixes (#16065) 2018-08-19 22:29:08 +02:00
test_python_script.py Fix time functions would throw errors in python scripts (#11414) 2018-01-07 01:50:55 +01:00
test_qwikswitch.py Qwikswitch binary sensors (#14008) 2018-04-21 08:34:42 +02:00
test_remember_the_milk.py Spelling fixes (#12041) 2018-01-29 23:37:19 +01:00
test_rest_command.py Grammar and spelling fixes (#16065) 2018-08-19 22:29:08 +02:00
test_rflink.py Update voluputous (#12463) 2018-02-17 10:29:14 +01:00
test_rfxtrx.py Grammar and spelling fixes (#16065) 2018-08-19 22:29:08 +02:00
test_ring.py Upgrade ring_doorbell to 0.2.1 to fix oauth issues (#14984) 2018-06-16 08:58:39 +02:00
test_rss_feed_template.py Grammar and spelling fixes (#16065) 2018-08-19 22:29:08 +02:00
test_script.py Remove service helper (5) (#16917) 2018-09-27 23:13:11 +02:00
test_shell_command.py Grammar and spelling fixes (#16065) 2018-08-19 22:29:08 +02: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: Added special slot values, session_id and slotname_raw (#16185) 2018-09-02 00:01:11 +02:00
test_spaceapi.py Add SpaceAPI support (#14204) 2018-05-14 09:13:59 +02:00
test_spc.py Init sub-components using global var. (#17220) 2018-10-07 23:30:09 +02:00
test_splunk.py Grammar and spelling fixes (#16065) 2018-08-19 22:29:08 +02:00
test_statsd.py Grammar and spelling fixes (#16065) 2018-08-19 22:29:08 +02:00
test_sun.py Grammar and spelling fixes (#16065) 2018-08-19 22:29:08 +02:00
test_system_log.py Pylint 2 fixes (#15487) 2018-07-17 19:34:29 +02:00
test_updater.py Grammar and spelling fixes (#16065) 2018-08-19 22:29:08 +02: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_webhook.py Webhook component - pass headers to webhook handler (#17091) 2018-10-04 15:54:51 +02:00
test_weblink.py Grammar and spelling fixes (#16065) 2018-08-19 22:29:08 +02:00