wait_for wants the wait_func to return False to signal that it needs to keep waiting. Since this function implicitly returns None no matter what, I'm not sure it will work as intended.

If I understand the goal correctly, the `do_check` should probably just be `return vm_details.config_button.is_smart_state_analysis_enabled()`, or just pass `vm_details.config_button.is_smart_state_analysis_enabled` straight to wait_for. Then set `fail_func` to be `pytest.sel.refresh`.

```python
wait_for(vm_details.config_button.is_smart_state_analysis_enabled, fail_func=pytest.sel.refresh)
```