Xiaomi temparature for HomeAssistant with MQTT auto discovery

Recently, I bought a Xiaomi temperature. I’ve searched some python projects for HA.
But Almost project support only one type temperature. (MJ-HT-V1 or LYWSD03MMC).
And do not support MQTT auto discovery.

So I’ve merge these codes with upgrade for auto discovery.

Here is my project. Please if you find any error or question, let me know.

flywithu/xiaomi-ble-mqtt: Temperature and Humidity senssor for Xiomi with Home Assistant MQTT auto discovery. (github.com)