Skip to content

Commit

Permalink
Add back the CO2 sensor for backwards compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
JohNan authored Feb 3, 2024
1 parent 09c995f commit de4cb36
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion custom_components/wellbeing/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,13 @@ def _create_entities(data):
name=f"{FILTER_TYPE.get(data.get('FilterType', 0), 'Unknown filter')} Life",
attr='FilterLife',
unit=PERCENTAGE
)
),
ApplianceSensor(
name="CO2",
attr='CO2',
unit=CONCENTRATION_PARTS_PER_MILLION,
device_class=SensorDeviceClass.CO2
)
]

common_entities = [
Expand Down

0 comments on commit de4cb36

Please sign in to comment.