HACS integrations fail to add

Hey folks,

I’m in a bit of a pickle trying to add integrations from HACS.

After successfully installing/downloading an integration through HACS, I am unable to add it as an integration in Home Assistant. When adding it, I get an error dialog with the message:

Config flow could not be loaded: {"message":"Invalid handler specified"}

In the Home Assistant log, it seems to correlate with a message like the following:

2024-10-08 18:11:07.175 ERROR (MainThread) [homeassistant.config_entries] Error occurred loading flow for integration tapo: No module named 'plugp100' 

That’s specifically when trying to add the Tapo integration, but other integrations that need to install a Python module also fail.

Integrations that don’t need to install any Python modules, succeed, like themes.

I’m facing the same problem as reported in this issue:

Also reported to HACS in this issue:

It seems that this is a Home Assistant issue, but it appears the above issue is now closed.

So I’m wondering if anyone has faced something similar and has a workaround?

For example, can I manually install the Python module that an integration needs?

Cheers

Hi IsThisIt,

Chances are that if you manage to install any module directly into HA, it will disappear the next time you try to update HA.
I have no idea what the issue is, but I suggest asking in the Git Repo where you are getting the software from because if you are having the problem, a good chance that others are.

I created a new issue in the HACS repo as a start:

I am unsure if it is a HACS issue, Home Assistant issue or an issue with the integrations I am trying to access through HACS.

It seems to be an actual problem with HA, as being discussed in this issue.

The proposed workaround here worked for me for the time being.

I’m having the exact same problem, I’m trying to install the tapo camera control component but I’m getting this error

2024-12-26 14:30:29.946 ERROR (MainThread) [homeassistant.config_entries] Error occurred loading flow for integration tapo_control: No module named 'pytapo' 

I’m running HA container in a Kubernetes (k3s) cluster. For testing purposes, I’ve tried bootstrapping a HA OS instance using a virtual machine and the problem did not happen. I’m really not sure what the issue could be.

If it’s of any help this is the K8s manifest I’m using for HA:

apiVersion: apps/v1
kind: Deployment
metadata:
  name: home-assistant
  labels:
    app.kubernetes.io/name: home-assistant
spec:
  selector:
    matchLabels:
      app.kubernetes.io/name: home-assistant
  replicas: 1
  strategy:
    type: RollingUpdate
  template:
    metadata:
      labels:
        app.kubernetes.io/name: home-assistant
    spec:
      containers:
        - name: home-assistant
          image: ghcr.io/home-assistant/home-assistant:2024.12.5
          imagePullPolicy: IfNotPresent
          ports:
            - name: http
              containerPort: 8123
              protocol: TCP
          env:
            - name: TZ
              value: Europe/Berlin
            - name: LATITUDE
              valueFrom:
                secretKeyRef:
                  name: home-assistant-secrets
                  key: latitude
            - name: LONGITUDE
              valueFrom:
                secretKeyRef:
                  name: home-assistant-secrets
                  key: longitude
            - name: DISABLE_JEMALLOC
              value: "true"
          volumeMounts:
            - name: config-dir
              mountPath: /config
            - name: configuration
              mountPath: /config/configuration.yaml
              subPath: configuration.yaml
            - name: configuration
              mountPath: /config/automations.yaml
              subPath: automations.yaml
          resources:
            limits:
              cpu: 3000m
              memory: 4Gi
            requests:
              cpu: 100m
              memory: 128Mi
      volumes:
        - name: config-dir
          persistentVolumeClaim:
            claimName: home-assistant-config
        - name: configuration
          configMap:
            name: home-assistant-configuration
            items:
              - key: configuration.yaml
                path: configuration.yaml
              - key: automations.yaml
                path: automations.yaml
---
apiVersion: v1
kind: Service
metadata:
  name: home-assistant
spec:
  type: ClusterIP
  ports:
    - port: 8123
      targetPort: 8123
  selector:
    app.kubernetes.io/name: home-assistant
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: home-assistant-config
  labels:
    app.kubernetes.io/name: home-assistant
spec:
  accessModes:
    - ReadWriteOnce
  resources:
    requests:
      storage: 1Gi
  storageClassName: local-path