Package org.openhab.core.thing
Interface ThingTypeMigrationService
@NonNullByDefault
public interface ThingTypeMigrationService
The
ThingTypeMigrationService describes a service to change the thing type
of a given Thing.- Author:
- Andre Fuechsel - Initial contribution
-
Method Summary
Modifier and TypeMethodDescriptionvoidmigrateThingType(Thing thing, ThingTypeUID thingTypeUID, @Nullable Configuration configuration) Changes the type of a givenThing.
-
Method Details
-
migrateThingType
void migrateThingType(Thing thing, ThingTypeUID thingTypeUID, @Nullable Configuration configuration) Changes the type of a givenThing.- Parameters:
thing-Thingwhose type should be changedthingTypeUID- newThingTypeUIDconfiguration- new configuration
-