-
Notifications
You must be signed in to change notification settings - Fork 27
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
0.6 beta errors after adding integration #33
Comments
hello @u20p17, do you have any other Midea devices on the network (e.g. air conditioner, fan)? Meanwhile, I have updated v0.6.0-beta with some code which might try to solve the issue. Use same installation method as explained in #32 |
Hi, I redownloaded an installed the custom component und after restart I get only one error again: Logger: custom_components.midea_dehumidifier_lan.hub Error while setting appliance id=18691697883547 sn=000000P0000000Q1A0681CAD4B810000 ip=192.168.0.106: Missing cloud credentials Then I tried to delete the device and add it again in HA (so again log in with my cloud credentiald) and got again the same error. BR |
I've published new release which should output more information on when this error occurs. I'm still at loss, as to why that happens in your installation. Could you retry with a re-install? |
Thanks for your effort! :) Logger: homeassistant.config_entries Error setting up entry Midea Air Appliance for midea_dehumidifier_lan During handling of the above exception, another exception occurred: Traceback (most recent call last): |
😭 that was bug in bug... but at least got some info. Updated with new version that should log things correctly. Thank you for testing, could you redownload again? |
I've republished it - seems it passed to draft instead beta. |
okay, up to now I only see the 0.5 for download - will try tomorrow again (Y) |
noe i was able to download 0.6 beta again. here is the log file: Logger: homeassistant.config_entries Error setting up entry Midea Air Appliance for midea_dehumidifier_lan During handling of the above exception, another exception occurred: Traceback (most recent call last): |
I was too fast in writing code that scrubs credentials from logs. I've added now some unit tests to check it before committing. Thanks a lot for testing. New beta should be better hopefully. |
Hi, |
I've published it. Should be showing now. |
|
Thanks, I think I can try to reproduce it locally. |
hello @u20p17 I've updated beta with hopefully fix this time. If it works, you should see something like this in logs:
|
Hi, with the latest version i am able to add the humidifier to HA. So it seems that you fixed the bug 👍 i get one another error which seems to be related to this custom component: Logger: pyhap.characteristic TargetHumidifierDehumidifierState: value=0 is an invalid value. |
Version of the custom_component:
0.6 beta
Configuration
Describe the bug
Updated to 0.6 beta, restarted HA. Then removed the integration and added it again. After another restart I get the two errors. If I open the Konfigration of this integration it looks like this:
Debug log
Logger: homeassistant.config_entries
Source: custom_components/midea_dehumidifier_lan/hub.py:345
Integration: Midea Air Appliances (LAN) (documentation, issues)
First occurred: 22:29:44 (1 occurrences)
Last logged: 22:29:44
Error setting up entry Midea Air Appliance for midea_dehumidifier_lan
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 313, in async_setup
result = await component.async_setup_entry(hass, self) # type: ignore
File "/config/custom_components/midea_dehumidifier_lan/init.py", line 63, in async_setup_entry
await hub.async_setup()
File "/config/custom_components/midea_dehumidifier_lan/hub.py", line 449, in async_setup
await self._setup_discovery()
File "/config/custom_components/midea_dehumidifier_lan/hub.py", line 400, in _setup_discovery
self.discovery_helper.setup(self.data)
File "/config/custom_components/midea_dehumidifier_lan/hub.py", line 345, in setup
if device[CONF_DISCOVERY] != DISCOVERY_LAN:
KeyError: 'discovery'
Logger: custom_components.midea_dehumidifier_lan.hub
Source: custom_components/midea_dehumidifier_lan/api.py:52
Integration: Midea Air Appliances (LAN) (documentation, issues)
First occurred: 22:29:44 (1 occurrences)
Last logged: 22:29:44
Error while setting appliance id=18691697883547 sn=000000P0000000Q1A0681CAD4B810000 ip=192.168.0.106: Missing cloud credentials
Traceback (most recent call last):
File "/config/custom_components/midea_dehumidifier_lan/hub.py", line 514, in _process_appliance
appliance = await self.hass.async_add_executor_job(
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/midea_dehumidifier_lan/api.py", line 52, in appliance_state
return midea_beautiful_api.appliance_state(
File "/usr/local/lib/python3.9/site-packages/midea_beautiful/init.py", line 130, in appliance_state
return get_appliance_state(
File "/usr/local/lib/python3.9/site-packages/midea_beautiful/lan.py", line 943, in get_appliance_state
raise MideaError("Missing cloud credentials")
midea_beautiful.exceptions.MideaError: Missing cloud credentials
The text was updated successfully, but these errors were encountered: