Skip to content

Commit

Permalink
Merge pull request #58 from RobertD502/aqi_fix
Browse files Browse the repository at this point in the history
Use presence of AQI value to determine if AQI entity should be added
  • Loading branch information
RobertD502 authored Jan 9, 2025
2 parents 0caf9a2 + 4792d8d commit e1fecbb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion custom_components/coway/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
"requirements": [
"cowayaio==0.1.12"
],
"version": "0.4.4"
"version": "0.4.5"
}
2 changes: 1 addition & 1 deletion custom_components/coway/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ async def async_setup_entry(
sensors = []

for purifier_id, purifier_data in coordinator.data.purifiers.items():
if not purifier_data.mcu_version:
if purifier_data.air_quality_index:
sensors.append(AirQualityIndex(coordinator, purifier_id))

sensors.extend((
Expand Down

0 comments on commit e1fecbb

Please sign in to comment.