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 TypeMethodDescriptionvoid
migrateThingType
(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
-Thing
whose type should be changedthingTypeUID
- newThingTypeUID
configuration
- new configuration
-