Deprecate YAML config for AirVisual (0.119 removal)#42581
Deprecate YAML config for AirVisual (0.119 removal)#42581frenck merged 2 commits intohome-assistant:devfrom
Conversation
25dbfb5 to
b44c73d
Compare
|
That's pretty cool, but now there is no way to setup AirVisualGeographySensors because there's no support for them in Config Flow. Are they being deprecated (and the only option will be lat/lng going forward), or is this just missing in the UI and needs to be added? |
|
@GeorgeSG The UI configuration allows for the setup of geography sensors via latitude/longitude – is there a use case where country/state/city is more effective than latitude/longitude? |
|
@bachya I'm new to this integration, but I think there is a use case, yes. Whatever I try, I cannot add a sensor for this location: https://www.iqair.com/bulgaria/sofia/sofia-mladost. Any lat/long I choose defaults to https://www.iqair.com/bulgaria/sofia. There are multiple stations in Sofia, and I can only setup a sensor for what seems to be the default one: I am hoping being able to specify country/state/city will solve this problem. |
|
@GeorgeSG Got it. And you can confirm that with the previous country/state/city YAML configuration, you could get the station you want? |
|
@bachya I haven't used the integration before, will yaml config work with this version? |
|
@GeorgeSG No, that has been removed as part of this PR – sorry, from your previous comments, I had assumed you had previously used this integration. |
|
@bachya I have the use case. I tried setting up my location via lat/lon but it did not report correctly - kept giving me NOx readings instead of PM2.5. Using the YAML I configured the location by country/city/state and it's worked appropriately ever since. Something with their API, I guess. Anyway, I would appreciate a way to configure it via location name before the YAML is deprecated. |
|
Thanks, @PhilRW – appreciate the info. I'm on it. |
Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com>

Breaking change
Per ADR-0010, this PR deprecates YAML configuration for AirVisual until 0.119. Users who already use the AirVisual integration do not need to take action, as their configuration has already been imported into the UI.
Proposed change
Per ADR-0010, this PR deprecates YAML configuration for AirVisual until 0.119.
Type of change
Example entry for
configuration.yaml:# Example configuration.yamlAdditional information
Checklist
black --fast homeassistant tests)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest.requirements_all.txt.Updated by running
python3 -m script.gen_requirements_all..coveragerc.The integration reached or maintains the following Integration Quality Scale:
To help with the load of incoming pull requests: