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

Toon climate and smartmeter not working since 0.89 #23

Closed
pdwonline opened this issue Mar 11, 2019 · 8 comments
Closed

Toon climate and smartmeter not working since 0.89 #23

pdwonline opened this issue Mar 11, 2019 · 8 comments

Comments

@pdwonline
Copy link

pdwonline commented Mar 11, 2019

Since HA 0.89, Toon came with the following error:

Traceback (most recent call last):
  File "/usr/src/app/homeassistant/helpers/entity_platform.py", line 124, in _async_setup_platform
    task = async_create_setup_task()
  File "/usr/src/app/homeassistant/helpers/entity_platform.py", line 89, in async_create_setup_task
    None, platform.setup_platform, hass, platform_config,
AttributeError: module 'homeassistant.components.toon.climate' has no attribute 'setup_platform'

I have already placed the python script in a folder named 'toon and renamed the .py files to climate.py and sensor.py for release 0.88

@cyberjunky
Copy link
Owner

Update your components from repo. They should be fixed.
If you use the google assistant version, I will fix this later today.

@pdwonline
Copy link
Author

Thanks! I updated them and the smartmeter is working again! However, the Toon climate component is not (same error)

@cyberjunky
Copy link
Owner

Do you use the google assistant one? (from issue #13) or the default one from toon repo directory? The last one should work.

@cyberjunky
Copy link
Owner

I have put the google assistant one in toon_google directory.
Still have to fix switching modes and manual.
Will try to look into this today.

@pdwonline
Copy link
Author

pdwonline commented Mar 11, 2019

I used the default climate component from the toon repo directory and placed it in the folder 'custom_components/toon' but it doesn work. still getting this error:

Traceback (most recent call last):
  File "/usr/src/app/homeassistant/helpers/entity_platform.py", line 124, in _async_setup_platform
    task = async_create_setup_task()
  File "/usr/src/app/homeassistant/helpers/entity_platform.py", line 89, in async_create_setup_task
    None, platform.setup_platform, hass, platform_config,
AttributeError: module 'homeassistant.components.toon.climate' has no attribute 'setup_platform'

Up to 0.88 it worked fine

@pdwonline
Copy link
Author

Probably it has something to do with this change: home-assistant/core#21070
Does it mean I have to include a climate component also in the same folder? (and where do I get that component?)

@cyberjunky
Copy link
Owner

Did you look at the repo, read the README.md file and looked into the toon and/or toon_google directory?

You can find the climate.py file inside it (which is simply the old toon.py file) and a empty __init__.py file, both need to be copied (like the README described) to your toon dir, and you must remove the old toon.py file.

I use them with 0.89.1 without issues.

@pdwonline
Copy link
Author

You'te right, i missed the init.py file! Thank You!

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