Skip to content

Commit

Permalink
Change RStateProdiction to DataTypeReal
Browse files Browse the repository at this point in the history
  • Loading branch information
ebaauw committed Dec 2, 2024
1 parent c4c5e3c commit 7ad5f9c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion devices/generic/items/state_production_item.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"schema": "resourceitem1.schema.json",
"id": "state/production",
"datatype": "UInt64",
"datatype": "Double",
"access": "RW",
"public": true,
"description": "The measured production (in Wh).",
Expand Down
2 changes: 1 addition & 1 deletion resource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ void initResourceDescriptors()
rItemDescriptors.emplace_back(ResourceItemDescriptor(DataTypeString, QVariant::String, RStatePresenceEvent));
rItemDescriptors.emplace_back(ResourceItemDescriptor(DataTypeReal, QVariant::Double, RStatePressure));
rItemDescriptors.emplace_back(ResourceItemDescriptor(DataTypeReal, QVariant::Double, RStatePressureBis));
rItemDescriptors.emplace_back(ResourceItemDescriptor(DataTypeUInt64, QVariant::Double, RStateProduction));
rItemDescriptors.emplace_back(ResourceItemDescriptor(DataTypeReal, QVariant::Double, RStateProduction));
rItemDescriptors.emplace_back(ResourceItemDescriptor(DataTypeBool, QVariant::Bool, RStateReachable));
rItemDescriptors.emplace_back(ResourceItemDescriptor(DataTypeBool, QVariant::Bool, RStateReplaceFilter));
rItemDescriptors.emplace_back(ResourceItemDescriptor(DataTypeUInt8, QVariant::Double, RStateRotaryEvent));
Expand Down

0 comments on commit 7ad5f9c

Please sign in to comment.