Temperature dependence of the properties of open heavy-flavor mesons