* Catch exceptions when writing states * Do not use wrapper for logging and adjust tests * Catch logging directly on async_write_ha_state() * Update homeassistant/components/mqtt/models.py Co-authored-by: Erik Montnemery <erik@montnemery.com> * Fix test --------- Co-authored-by: Erik Montnemery <erik@montnemery.com>