async def test_pure_cool_combined(hass: HomeAssistant, device: DysonFanDevice): assert hass.states.get(f"sensor.{NAME}_carbon_filter_life").state == "30" assert hass.states.get(f"sensor.{NAME}_hepa_filter_life").state == "50" device.carbon_filter_life = 20 device.hepa_filter_life = 30 await update_device(hass, device, MessageType.STATE) assert hass.states.get(f"sensor.{NAME}_carbon_filter_life").state == "20" assert hass.states.get(f"sensor.{NAME}_hepa_filter_life").state == "30"
async def test_pure_cool_seperated(hass: HomeAssistant, device: DysonFanDevice): """Test Pure Cool carbon and HEPA filter sensors.""" assert hass.states.get(f"sensor.{NAME}_carbon_filter_life").state == "30" assert hass.states.get(f"sensor.{NAME}_hepa_filter_life").state == "50" device.carbon_filter_life = 20 device.hepa_filter_life = 30 await update_device(hass, device, MessageType.STATE) assert hass.states.get(f"sensor.{NAME}_carbon_filter_life").state == "20" assert hass.states.get(f"sensor.{NAME}_hepa_filter_life").state == "30"