core/tests/components/sql
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
..
__init__.py Fix sql integration issues 5.0 beta (#71063) 2022-04-29 10:00:44 -07:00
test_config_flow.py Ensure sql sensors keep working after using the options flow (#71453) 2022-05-07 14:18:40 -07:00
test_init.py Implement config flow for SQL integration (#68700) 2022-04-24 08:50:32 -10:00
test_sensor.py Fix sql integration issues 5.0 beta (#71063) 2022-04-29 10:00:44 -07:00