core/homeassistant/components/airq
Renat Sibgatulin be5d6425dc
Add options flow to the airq integration (#109337)
* Add support for options to airq integration

Expose to the user the following configuration:
1. A choice between fetching from the device either:
    a. the averaged (previous and the new default behaviour) or
    b. noisy momentary sensor reading
2. A toggle to clip (spuriously) negative sensor values (default
    functionality, previously unexposed)

To those ends:
- Introduce an `OptionsFlowHandler` alongside with a listener
  `AirQCoordinator.async_set_options`
- Introduce constants to handle represent options
- Add tests and strings

* Drop OptionsFlowHandler in favour of SchemaOptionsFlowHandler

Modify `AirQCoordinator.__init__` to accommodate the change in option
handling, and drop `async_set_options` which slipped through the
previous commit.

* Ruff formatting
2024-05-15 09:13:26 +02:00
..
__init__.py Add options flow to the airq integration (#109337) 2024-05-15 09:13:26 +02:00
config_flow.py Add options flow to the airq integration (#109337) 2024-05-15 09:13:26 +02:00
const.py Add options flow to the airq integration (#109337) 2024-05-15 09:13:26 +02:00
coordinator.py Add options flow to the airq integration (#109337) 2024-05-15 09:13:26 +02:00
icons.json Add icon translations to AirQ (#108402) 2024-01-19 20:06:06 +01:00
manifest.json Remove IP / mDNS validation in airq integration setup (#106326) 2023-12-27 09:56:13 +01:00
sensor.py Use runtime_data for airq (#116620) 2024-05-02 20:58:37 +02:00
strings.json Add options flow to the airq integration (#109337) 2024-05-15 09:13:26 +02:00