[infrastructure] add external null-annotations (#8848)
Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
This commit is contained in:
@@ -92,9 +92,10 @@ public class KostalInverterFactory extends BaseThingHandlerFactory {
|
||||
return new WebscrapeHandler(thing);
|
||||
}
|
||||
// third generation
|
||||
if (SUPPORTED_THIRD_GENERATION_THING_TYPES_UIDS.containsKey(thing.getThingTypeUID())) {
|
||||
return new ThirdGenerationHandler(thing, httpClient,
|
||||
SUPPORTED_THIRD_GENERATION_THING_TYPES_UIDS.get(thing.getThingTypeUID()));
|
||||
ThirdGenerationInverterTypes inverterType = SUPPORTED_THIRD_GENERATION_THING_TYPES_UIDS
|
||||
.get(thing.getThingTypeUID());
|
||||
if (inverterType != null) {
|
||||
return new ThirdGenerationHandler(thing, httpClient, inverterType);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user