91.4 to 92.0 => 1 custom components not working anymore

i upgraded from 91.4 to 92.0 , now receiving 1 error for custom components?

any1 to help me?

component : https://github.com/aFrankLion/hass-google_keep

2019-04-25 10:45:20 ERROR (MainThread) [homeassistant.setup] Error during setup of component google_keep
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/homeassistant/setup.py", line 156, in _async_setup_component
    component.setup, hass, processed_config)  # type: ignore
AttributeError: module 'custom_components.google_keep' has no attribute 'setup'

I’d say you need to raise an issue on the github repo for the customer component. I’ve not looked at it but most likely the repo owner did not make the changes required to be compatible with 0.92

Ah ok, and what do I need to change, maybe I can do it myself already?

sorry no idea, you need to check with the repo, but this might provide more info:

1 Like

just out of curiosity, if you create a empty file called

__init__.py

and place it in the custom folder directory and restart does it make a difference?

thats
underscore underscore init underscore underscore dot py

Tried it, but doesn’t work either, I have it for other custom too, the ones I override

have you tried creating the manifest.json file

try making a minimal one as described here.

ok, created a manifest.json, with this in it:
{
“domain”: “google_keep”,
“name”: “Google keep”,
“documentation”: “https://github.com/aFrankLion/hass-google_keep”,
“requirements”: [“gkeepapi==0.10.7”],
“dependencies”: [],
“codeowners”: []
}

then tried commenting out in google_keep.py , or not commenting out this line
REQUIREMENTS = ['gkeepapi==0.10.7']

but still the same error :frowning:

Sorry out of further ideas, maybe try contacting the developer directly.

ok, i hope he answers :slight_smile:

Try leaving the requirements empty in the manifest and the component unchanged

the same error :frowning:

I have a different problem. When starting after upgrading to 92.0 I got the same “Integration not found”.

I therefore created manifest.json files for my custom components and the integrations are now found.

When checking the configuration I now get errors that data for required keys are not provided. The issue is that these keys are required for the one of the sensors (sl) and the errors relate to the other sensors (ikea and pollenniva) sensor.

This is what I have:

The three sensors are located as follows:

config/custom_components/sl/sensor.py
config/custom_components/ikea/sensor.py
config/custom_components/pollenniva/sensor.py

In each folder (where sensor.py is located) I created an empty init.py
I also created a manifest.json

The content of the manifest.json is (I do not bother about the json format which is correct):
domain=sensor
name=sl, ikea and pollenniva respectively
documentation=address to the code page on GitHub if I have it otherwise []
dependencies=[] - in none of the sensor.py are any dependencies defined
codeowners=@githubalias if I have it otherwise []
requirements=the requirement as specified in the sensor.py within “” otherwise []

It seems that all sensors expect the same requirements.

Is google_keep the domain or the name of the integration?

its the name of the custom comonent
so i have the folder :

custom_components\google_keep\google_keep.py

why are you asking? is that wrong then?

and my config looks like:

google_keep:
  username: !secret gmail_username
  password: !secret gmail_password

i dont think the google_keep.py is correct

its normally named sensor.py, or climate.py, switch.py… what sort of integration is it?
the folder structure is correct, just the name of the file in it seems incorrect

1 Like

but it always worked, i used it for like 7-8 months now
i update also every release

ok, seems i have 2 times google_keep.py file
one time in the custom_components directly and also in custom_components\google_keep directory

i am placing that ini.py file and manifest in the google_keep directory
but maybe its loading the google_keep.py file from my root directory, and not finding those init and manifest file
so maybe i should make it a platform ? so google_keep will be a component of that platform?

nothing should be in the root folder of custom components. all custom components need to be in their individual folders

does it mean i need to make it a platform then?

so like

google_keep:
  - platform: google_keep:
    username: !secret gmail_username2
    password: !secret gmail_password2