Custom component problem - Integration 'xxx' not found

A few years ago I wrote my own custom component for communication with an extension board. It worked flawlessly.
However, I must admit that I haven’t updated HA for a long long time. Yesterday I lost the memory card in the Raspberry pi. I don’t know what happened, I can’t read it anymore :confused: Anyway…
I bought a new SD card, I downloaded the latest version of HA and installed it on Raspberry. Before logging in, I restored some old (one year old) backup. And then I updated HA to the latest version.
The main problem is that now the system cannot see my custom component.

I get the following error:
“Platform error binary_sensor.xxx - Integration ‘xxx’ not found.
Platform error switch.xxx- Integration ‘xxx’ not found.”

I’ve placed my component in: config/custom_components/xxx

Has anything changed over the course of the year about custom components? Should they be placed elsewhere now?

Thanks in advance for every answer :slight_smile:

You now need a version number key in the manifest file.

Read more about it here-

Like this?

{
“domain”: “shs”,
“name”: “Smart Home System”,
“documentation”: “”,
“requirements”: [
“RPi.GPIO==0.6.5”,
“adafruit-blinka==1.2.1”,
“adafruit-circuitpython-mcp230xx==1.1.2”
],
“dependencies”: [],
“codeowners”: ["@sokolsok"]
“version”: “0.1.0”
}

Unfortunately it doesn’t help.

Yep. Like that.

EDIT: add a comma after codeowners value. Otherwise it is not valid json.

{
“domain”: “shs”,
“name”: “Smart Home System”,
“documentation”: “”,
“requirements”: [
“RPi.GPIO==0.6.5”,
“adafruit-blinka==1.2.1”,
“adafruit-circuitpython-mcp230xx==1.1.2”
],
“dependencies”: [],
“codeowners”: ["@sokolsok"],
“version”: “0.1.0”
}

{
	"domain": "shs",
	"documentation": "",
	"name": "Smart Home System",
	"version": "1.0.0",
	"dependencies": "",
	"codeowners": [
		"@sokolsok"
	],
	"requirements": [
		"RPi.GPIO==0.6.5",
		"adafruit-blinka==1.2.1",
		"adafruit-circuitpython-mcp230xx==1.1.2"
	]
}
1 Like

Thanks Ardy!
Component still not working, but now something else is a problem. Nevertheless, HA sees my custom component :slight_smile:

1 Like