Implement sensor plugin dependency calculation and optional default config entities to fix tests.