al-one / hass-xiaomi-miot

Automatic integrate all Xiaomi devices to HomeAssistant via miot-spec, support Wi-Fi, BLE, ZigBee devices. 小米米家智能家居设备接入Hass集成
https://miot-spec.com
Apache License 2.0
4.7k stars 663 forks source link

Failure to load component on server restart with Pi-hole #964

Open Ginden opened 1 year ago

Ginden commented 1 year ago

I'm running Pi-hole and Home Assistant on one server.

When I restart entire server, Xiaomi Miot Auto fail to load due to DNS issues. I have to restart Home Assistant after Pi-hole loads to use Xiaomi Miot.

al-one commented 1 year ago

Maybe you should check your dns configuration.

Ginden commented 1 year ago

@al-one This issue occurs only if DNS server is unavailable during Home Assistant start, causing integration fail to load at all (it can't be reloaded, because it wasn't loaded in first place).

Other integrations will generally retry their setup later in such case.