'Publish state change to MQTT.'

@asyncio.coroutine
def _async_state_changed_listener(self, entity_id, old_state, new_state):

    mqtt.async_publish(self.hass, self._state_topic, new_state.state, self._qos, True)
