-
-
Notifications
You must be signed in to change notification settings - Fork 57
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
Remove adapter.getMessage #575
Comments
Status 12.3.2020 Relevant:
Pot relevant:
|
sayit has it removed now but 1.9.1 needs npm publish |
Ok, updates Status (based on Github): Left are:
|
Move deprecation to 3.1 in 6 months? |
Yes. We should try to get access to frankjoe stuff in the meantime |
I move that ticket to controller 3.1 to give us some ore time - I move after updating logging |
AFAIK @frankjoke is active again. So any updates according to the list, so we can finally remove it in 3.2? ;-) |
Ok, what's up? adapter.getMessage should not be used anymore? what is the migration strategy? I use myAdapter for nearly all my adapters and this makes all the basic interface. I am requriting is and the test of new version is already in radar2 V2. It would be great to know what I need to change in addition. |
@Apollon77 |
@frankjoke getMessage is doing absolutely nothing for some time now. So just remove it from your code - nothing to migrate ;-) For the other question @AlCalzone is your man. |
@frankjoke Do you have an example of a test that is not working outside of the iobroker environment because of adapter-core? For testing we have the @iobroker/testing module which has |
@AlCalzone All the devices where iobroker is running are remote and I need to copy changes to the node_modules... before starting a test on these machines with ioBroker. Now by using the acore.Adapter class it crashes when loading outside of iobroker e´ven if I do not make an instance of it! |
Can you link me to specific test code? I'm sure something can be done about your problem but I can't guess from vague explanations. |
You can use my acceptdata adapter (generated with iobroker adaptertool) https://github.com/frankjoke/ioBroker.acceptdata before recent adapter-cores i could add test code before standard
and comment out the |
Ok, you basically need a way to use adapter-core "lazy" (only when its actually needed). So if you don't create an instance of the adapter (new ... commented out) or use any of the exported tools, it should not run.
What do you mean by that? adapter.js is part of js-controller, so if you have that, adapter-core should find it. |
I've looked into this some more. What you need to do is structure your main file the old-fashioned way: |
@foxriver76 , Ok, I had it there because 3-4 years ago when I started to write adapters it was part of the 'eyample adapter' on which I built mine. Will remove it from myAdapter and update adapters in next days. @AlCalzone , You are right with your assumption in first post, will check your proposal to see if I can get it working. |
@Apollon77 could you run another grep? |
... and fix the following Adapters before:
The text was updated successfully, but these errors were encountered: