Skip to content

Commit

Permalink
Bump airgradient to 0.4.3 (#118776)
Browse files Browse the repository at this point in the history
  • Loading branch information
joostlek authored Jun 4, 2024
1 parent e9f01be commit 43a9a4f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion homeassistant/components/airgradient/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ async def set_configuration_source(self) -> None:
"""Set configuration source to local if it hasn't been set yet."""
assert self.client
config = await self.client.get_config()
if config.configuration_control is ConfigurationControl.BOTH:
if config.configuration_control is ConfigurationControl.NOT_INITIALIZED:
await self.client.set_configuration_control(ConfigurationControl.LOCAL)

async def async_step_zeroconf(
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/airgradient/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"documentation": "https://www.home-assistant.io/integrations/airgradient",
"integration_type": "device",
"iot_class": "local_polling",
"requirements": ["airgradient==0.4.2"],
"requirements": ["airgradient==0.4.3"],
"zeroconf": ["_airgradient._tcp.local."]
}
2 changes: 1 addition & 1 deletion homeassistant/components/airgradient/select.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class AirGradientSelectEntityDescription(SelectEntityDescription):
options=[ConfigurationControl.CLOUD.value, ConfigurationControl.LOCAL.value],
entity_category=EntityCategory.CONFIG,
value_fn=lambda config: config.configuration_control
if config.configuration_control is not ConfigurationControl.BOTH
if config.configuration_control is not ConfigurationControl.NOT_INITIALIZED
else None,
set_value_fn=lambda client, value: client.set_configuration_control(
ConfigurationControl(value)
Expand Down
2 changes: 1 addition & 1 deletion requirements_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ aiowithings==2.1.0
aioymaps==1.2.2

# homeassistant.components.airgradient
airgradient==0.4.2
airgradient==0.4.3

# homeassistant.components.airly
airly==1.1.0
Expand Down
2 changes: 1 addition & 1 deletion requirements_test_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ aiowithings==2.1.0
aioymaps==1.2.2

# homeassistant.components.airgradient
airgradient==0.4.2
airgradient==0.4.3

# homeassistant.components.airly
airly==1.1.0
Expand Down

0 comments on commit 43a9a4f

Please sign in to comment.