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

Getting Error - ConfigEntry.__init__() missing 1 required keyword-only argument: 'minor_version' #686

Open
ashishpandey opened this issue Jan 21, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@ashishpandey
Copy link

Version of the integration

Tapo Controller Version: v2.13.0
HACS version: 1.33.0
HA Core Version: 2024.1.4

Configuration

Device: P110

YAML configuration:

switch:
- platform: tapo
  ip_address: 192.168.40.23
  username: !secret tapo_user
  password: !secret tapo_pass

Describe the bug

I have installed the tapo integration via HACS. Added a switch by pointing to it's IP. Have tried both ip_address: 192.168.40.23 and host: 192.168.40.23 in yaml configuration, and get the same error as above

Debug log

Error from logs

Logger: homeassistant.components.switch
Source: helpers/entity_platform.py:360
Integration: Switch ([documentation](https://www.home-assistant.io/integrations/switch), [issues](https://github.com/home-assistant/core/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+switch%22))
First occurred: 7:02:05 PM (2 occurrences)
Last logged: 7:02:05 PM

Error while setting up tapo platform for switch
Traceback (most recent call last):
  File "/lsiopy/lib/python3.11/site-packages/homeassistant/helpers/entity_platform.py", line 360, in _async_setup_platform
    await asyncio.shield(task)
  File "/config/custom_components/tapo/switch.py", line 32, in async_setup_platform
    coordinator = await setup_from_platform_config(hass, config)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/tapo/setup_helpers.py", line 61, in setup_from_platform_config
    temporary_entry = ConfigEntry(
                      ^^^^^^^^^^^^
TypeError: ConfigEntry.__init__() missing 1 required keyword-only argument: 'minor_version'
@letchworth
Copy link

letchworth commented Feb 3, 2024

I had the same issue and got it working again.

First in "setup_helpers.py" file I added "minor_version = 1," on line 63.
Then restarted home assistant and the error cleared
Then I could add the lights via the UI.

Hope it helps

@petretiandrea petretiandrea added the bug Something isn't working label Feb 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants