Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

init() missing 1 required positional argument: 'option' #10

Open
HAlover99 opened this issue Nov 17, 2021 · 2 comments
Open

init() missing 1 required positional argument: 'option' #10

HAlover99 opened this issue Nov 17, 2021 · 2 comments

Comments

@HAlover99
Copy link

dear jomwells,

could you help me?
i configured the platform under switch section in configuration file.

Logger: homeassistant.components.hassio
Source: components/hassio/init.py:588
Integration: Home Assistant Supervisor (documentation, issues)
First occurred: 17:26:55 (1 occurrences)
Last logged: 17:26:55

The system cannot restart because the configuration is not valid: Platform error switch.philips_ambilight+yeelight - Integration 'philips_ambilight+yeelight' not found.

@HAlover99
Copy link
Author

i added the version on manifest.json file and HA tried to load the plugin but unfortunatel it generate the follow error:

Logger: homeassistant.components.switch
Source: custom_components/philips_ambilight+yeelight/switch.py:40
Integration: Interruttore (documentation, issues)
First occurred: 10:24:47 (1 occurrences)
Last logged: 10:24:47

Error while setting up philips_ambilight+yeelight platform for switch
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform
await asyncio.shield(task)
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/philips_ambilight+yeelight/switch.py", line 40, in setup_platform
add_devices([AmbiHue(name, tvip, bulbip, user, password, option)])
TypeError: init() missing 1 required positional argument: 'option'

@HAlover99 HAlover99 changed the title Integration 'philips_ambilight+yeelight' not found. init() missing 1 required positional argument: 'option' Nov 18, 2021
@bosser2407
Copy link

Same problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants