core/tests/components
J. Nick Koston 523828c81e
Ensure sql sensors keep working after using the options flow (#71453)
* Ensure sql sensors keep working after using the options flow

Fixes
```
2022-05-06 16:17:57 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up sql platform for sensor
Traceback (most recent call last):
  File "/Users/bdraco/home-assistant/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform
    await asyncio.shield(task)
  File "/Users/bdraco/home-assistant/homeassistant/components/sql/sensor.py", line 97, in async_setup_entry
    name: str = entry.options[CONF_NAME]
KeyError: name
```

* ensure saving the options flow fixes the broken config entry

* ensure options changes take effect right away

* Add cover to validate the reload
2022-05-07 14:18:40 -07:00
..
2022-04-26 09:59:31 +02:00
2022-04-25 07:41:01 -07:00
2022-04-20 08:56:05 +02:00
2022-03-30 11:26:08 +02:00
2022-04-26 16:32:00 +02:00
2022-04-26 16:32:00 +02:00
2022-03-22 21:01:24 -07:00
2022-02-26 19:37:24 +01:00
2022-04-26 23:09:10 -07:00
2022-04-26 16:32:00 +02:00
2022-03-26 09:50:50 -10:00
2022-02-12 11:49:37 -06:00
2022-04-25 10:58:39 +02:00
2022-04-29 21:26:27 -07:00
2022-02-19 11:38:10 +01:00
2022-04-26 16:32:00 +02:00
2022-04-26 15:30:34 +03:00
2022-05-02 15:50:13 +02:00
2022-03-03 15:12:33 -08:00
2022-04-26 16:32:00 +02:00
2022-01-18 11:02:43 -08:00
2022-03-30 12:15:04 +02:00
2022-03-30 16:15:34 +02:00
2022-03-30 11:26:08 +02:00
2022-04-18 16:27:14 +02:00
2022-02-12 08:28:54 -06:00
2022-03-07 18:58:29 +01:00
2022-04-26 16:32:00 +02:00
2022-05-06 10:05:15 +03:00
2022-04-14 15:29:31 -07:00
2022-02-19 20:27:06 +01:00
2022-04-26 16:32:00 +02:00
2022-04-27 19:05:42 +02:00
2022-03-12 12:36:08 +01:00
2022-03-03 07:59:31 +01:00
2021-12-31 09:44:35 -10:00
2022-04-25 21:25:24 -10:00
2022-01-13 15:32:39 +01:00