Instead of passing such strings (which could be mistyped), I would pass a CONSTANT defined at the top of this file. For instance:

```python
STATE_ALERT = 'alert'
STATE_OK = 'ok'
STATE_WARNING = 'warning'
```

and then reuse them where needed