marvingrieger / ioBroker.haassohn

This is an adapter for ioBroker that enables to control Haas+Sohn devices.
MIT License
8 stars 7 forks source link

Fix use of module.parent #24

Open marvingrieger opened 3 years ago

marvingrieger commented 3 years ago

module.parent is deprecated https://github.com/marvingrieger/ioBroker.haassohn/blob/c3dfc6c00485e27594ad94de982e6d9826221990/main.js#L487, better check module === require.main

Originally posted by @foxriver76 in https://github.com/ioBroker/ioBroker.repositories/issues/1054#issuecomment-761801121