Skip to content

Commit

Permalink
Fix invalid HVAC data type to function assignment
Browse files Browse the repository at this point in the history
Fixes #36
  • Loading branch information
DerAndereAndi committed Oct 12, 2024
1 parent 272b8f9 commit 06d9bf0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spine/function_data_factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func CreateFunctionData[F any](featureType model.FeatureTypeType) []F {
createFunctionData[model.HvacOperationModeDescriptionListDataType, F](model.FunctionTypeHvacOperationModeDescriptionListData),
createFunctionData[model.HvacOverrunDescriptionListDataType, F](model.FunctionTypeHvacOverrunDescriptionListData),
createFunctionData[model.HvacOverrunListDataType, F](model.FunctionTypeHvacOverrunListData),
createFunctionData[model.HvacSystemFunctionDescriptionDataType, F](model.FunctionTypeHvacSystemFunctionDescriptionListData),
createFunctionData[model.HvacSystemFunctionDescriptionListDataType, F](model.FunctionTypeHvacSystemFunctionDescriptionListData),
createFunctionData[model.HvacSystemFunctionListDataType, F](model.FunctionTypeHvacSystemFunctionListData),
createFunctionData[model.HvacSystemFunctionOperationModeRelationListDataType, F](model.FunctionTypeHvacSystemFunctionOperationModeRelationListData),
createFunctionData[model.HvacSystemFunctionPowerSequenceRelationListDataType, F](model.FunctionTypeHvacSystemFunctionPowerSequenceRelationListData),
Expand Down
2 changes: 1 addition & 1 deletion spine/function_data_factory_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func TestFunctionDataFactory_FunctionData(t *testing.T) {
assert.IsType(t, &FunctionData[model.HvacOperationModeDescriptionListDataType]{}, result[0])
assert.IsType(t, &FunctionData[model.HvacOverrunDescriptionListDataType]{}, result[1])
assert.IsType(t, &FunctionData[model.HvacOverrunListDataType]{}, result[2])
assert.IsType(t, &FunctionData[model.HvacSystemFunctionDescriptionDataType]{}, result[3])
assert.IsType(t, &FunctionData[model.HvacSystemFunctionDescriptionListDataType]{}, result[3])
assert.IsType(t, &FunctionData[model.HvacSystemFunctionListDataType]{}, result[4])

result = CreateFunctionData[api.FunctionDataInterface](model.FeatureTypeTypeIdentification)
Expand Down

0 comments on commit 06d9bf0

Please sign in to comment.