Under 0.95.x of HA, you need to configure both the integration through the UI and also the component through the configuration files. For some reason, it fails to connect if you only have the configuration files and (for me at least) nothing shows up on the UI configured integration.
Both of them are required. Refer Unable to connect to UniFi controller 5.10.25 using HA 0.95.x