Remove immediate = true from all Components (#8615)
We recommend not to use this on add-ons. Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
This commit is contained in:
committed by
GitHub
parent
f06068a189
commit
003c3af985
@@ -30,7 +30,7 @@ import org.osgi.service.component.annotations.Reference;
|
||||
* @author Markus Michels - Initial contribution
|
||||
*/
|
||||
@NonNullByDefault
|
||||
@Component(service = GreeTranslationProvider.class, immediate = true, configurationPid = "localization.gree")
|
||||
@Component(service = GreeTranslationProvider.class, configurationPid = "localization.gree")
|
||||
public class GreeTranslationProvider {
|
||||
|
||||
private final Bundle bundle;
|
||||
|
||||
@@ -49,7 +49,7 @@ import com.google.gson.JsonSyntaxException;
|
||||
* @author Markus Michels - Refactoring, adapted to OH 2.5x
|
||||
*/
|
||||
@NonNullByDefault
|
||||
@Component(service = GreeDeviceFinder.class, immediate = true, configurationPid = "devicefinder.gree")
|
||||
@Component(service = GreeDeviceFinder.class, configurationPid = "devicefinder.gree")
|
||||
public class GreeDeviceFinder {
|
||||
private final Logger logger = LoggerFactory.getLogger(GreeDeviceFinder.class);
|
||||
private static final Gson gson = (new GsonBuilder()).create();
|
||||
|
||||
@@ -47,7 +47,7 @@ import org.slf4j.LoggerFactory;
|
||||
*
|
||||
*/
|
||||
@NonNullByDefault
|
||||
@Component(service = DiscoveryService.class, immediate = true, configurationPid = "discovery.gree")
|
||||
@Component(service = DiscoveryService.class, configurationPid = "discovery.gree")
|
||||
public class GreeDiscoveryService extends AbstractDiscoveryService {
|
||||
private static final int TIMEOUT_SEC = 10;
|
||||
private final Logger logger = LoggerFactory.getLogger(GreeDiscoveryService.class);
|
||||
|
||||
Reference in New Issue
Block a user