Bugfix: Invalid function called#58
Conversation
Failed to unload due to calling a non existing function
|
Hi Tobias, Thanks for the PR! Please could you provide steps to replicate the bug that this PR fixes please? Then we can test some before/after. Thanks, |
It looks like you want to call the async_stop_refresh function (that takes no argument). This function calls ._async_stop_refresh in the super class. I assume this is what you want to do as there is no function called _async_stop_refresh that takes one argument on an instance of AmplifiDataUpdateCoordinator |
|
Hi Tobias, Thanks for this. If I'm reading this output correctly, I believe this pushes the error onto the coordinator module: Changing line 154 in The original author of this repo isn't active any more as they don't use the hardware. @atudor2 and I are most active in here now, but my knowledge of Python OOB is very limited. Perhaps Alistair will understand what is going on here better and may be able to assist. I will avoid merging this until this function works as expected. If the underlying issue remains unresolved, I am not keen to change things unnecessarily. In the meantime, restarting Home Assistant when the integration dies does bring the entities back in my experience. If you do find a fix, please push the changes to the same branch so we can test and hopefully merge in the future. Thanks, |
|
I've done some searching and found that this function no longer exists in the Home Assistant core. It was removed in this commit It was removed with the note "This avoids the ambuigity as to what happens if same callback is added multiple times." In that commit, in |
|
Totally. Maybe the right thing to do is to remove it all. I'm going to do some digging into this as well. I'm a bit new to custom components in home assistant Cheers! |
Failed to unload due to calling a non existing function