QNAP integration no longer working

I have a QNAP integration that no longer works. HA reports on the integration page QNAP Not loaded.
The devices and entities are listed but show ‘Not available’. This used to work but stopped somewhere along the line.
I have these entries in configuration.yaml:

sensor:
  - platform: qnap
    host: 192.168.1.5
    username: HA
    password: cr1ck3t5
    monitored_conditions:
      - status
      - cpu_usage
      - memory_percent_used
      - volume_percentage_used
      - system_temp
      - cpu_temp
      - drive_temp
  - platform: qnap
    host: 192.168.1.122
    username: HA
    password: cr1ck3t5
    monitored_conditions:
      - status
      - cpu_usage
      - memory_percent_used
      - volume_percentage_used
      - system_temp
      - cpu_temp
      - drive_temp

Can someone give me a pointer where to start looking for the problem?

My setup:

  • Core2024.11.1
  • Supervisor2024.11.2
  • Operating System13.2
  • Frontend20241106.2

Thanks in advance.

Qnap doesn’t use config.yaml anymore…longtime ago
So that’s why…
Ya simply can load the integration now in devices config

Yes i tried to install the integration but I get a pop-up that says “config flow could not be loaded: {“message”:“invalid handler specified”}”.
Do i need to uninstall the current one first and if so how do I do that? There is no option that says uninstall or delete.

you have to delete first the stuff from qnap in config.yaml!
then restart HA…
and find the integration again in devices add>
then it should work fine

Thanks, I will try that. I also have a qnap folder under config/custom_components.
Should I delete that as well?

Edit:I cleaned configuration.yaml and restarted HA men integrationen syns fortfarande.
Plus I get a notification that says:

Invalid config; The following integrations and platforms could not be set up:
* [qnap](https://www.home-assistant.io/integrations/qnap) ([Show logs](http://192.168.1.103:8123/config/logs?filter=qnap))
Please check your config and [logs](http://192.168.1.103:8123/config/logs).

The log says:
Setup failed for custom integration 'qnap': Unable to import component: cannot import name 'config_per_platform' from 'homeassistant.helpers' (/usr/src/homeassistant/homeassistant/helpers/__init__.py)

At a loss…please help…

Try to do a clean integration…
That means yes delete that custom…
If ya have that…
Start from the begin…
I never had that problem
So ill guess ya messed up good…

I will try to delete that folder under config/custom_components but it feels like there is some entry in a file somewhere else that causes this…not sure why I say that, just a gut feeling.

As I suspected, there is more to it. I deleted the config\custom_components\qnap folder, restarted HA and under integrations, QNAP still exists. Now says ‘Needs attention’ > TS221:
1 device and 31 entities
Failed to set up
Devices
TS451
1 device and 71 entities
But those entities for TS451 are ‘not available’.

Clearly, I have not been able to completely remove the existing QNAP setup.
From the log file:

Logger: homeassistant.config_entries
Source: config_entries.py:635
First occurred: 16:29:49 (1 occurrences)
Last logged: 16:29:49

Error setting up entry Ts-221 for qnap
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 635, in __async_setup_with_context
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/qnap/__init__.py", line 20, in async_setup_entry
    coordinator = QnapCoordinator(hass, config_entry)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/qnap/coordinator.py", line 38, in __init__
    protocol = "https" if config_entry.data[CONF_SSL] else "http"
                          ~~~~~~~~~~~~~~~~~^^^^^^^^^^
KeyError: 'ssl'

Can someone please please point me in the right direction?

Update; after I deleted the config\custom_components\qnap folder, restarted HA, I was able to delete the devices in integration and manually add them back in.
Seems to be working ok.