diff --git a/custom_components/wellbeing/api.py b/custom_components/wellbeing/api.py index e4a4f77..2bf997c 100644 --- a/custom_components/wellbeing/api.py +++ b/custom_components/wellbeing/api.py @@ -36,6 +36,7 @@ 67: "Breeze 360 filter", 96: "Breeze 360 filter", 99: "Breeze 360 filter", + 100: "Fresh 360 filter", 192: "FRESH Odour protect filter", 0: "Filter" } @@ -118,12 +119,6 @@ def __init__(self, name, pnc_id, model) -> None: @staticmethod def _create_entities(data): a7_entities = [ - ApplianceSensor( - name="eCO2", - attr='ECO2', - unit=CONCENTRATION_PARTS_PER_MILLION, - device_class=SensorDeviceClass.CO2 - ), ApplianceSensor( name=f"{FILTER_TYPE.get(data.get('FilterType_1', 0), 'Unknown filter')} Life", attr='FilterLife_1', @@ -149,13 +144,7 @@ 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 = [ @@ -174,6 +163,12 @@ def _create_entities(data): attr='TVOC', unit=CONCENTRATION_PARTS_PER_BILLION ), + ApplianceSensor( + name="eCO2", + attr='ECO2', + unit=CONCENTRATION_PARTS_PER_MILLION, + device_class=SensorDeviceClass.CO2 + ), ApplianceSensor( name="PM1", attr='PM1',