@@ -840,6 +840,7 @@ class Humidity(Sensor):
840840 _attr_state_class : SensorStateClass = SensorStateClass .MEASUREMENT
841841 _divisor = 100
842842 _attr_native_unit_of_measurement = PERCENTAGE
843+ _attr_primary_weight = 1
843844
844845
845846@MULTI_MATCH (cluster_handler_names = CLUSTER_HANDLER_SOIL_MOISTURE )
@@ -852,6 +853,7 @@ class SoilMoisture(Sensor):
852853 _attr_translation_key : str = "soil_moisture"
853854 _divisor = 100
854855 _attr_native_unit_of_measurement = PERCENTAGE
856+ _attr_primary_weight = 1
855857
856858
857859@MULTI_MATCH (cluster_handler_names = CLUSTER_HANDLER_LEAF_WETNESS )
@@ -864,6 +866,7 @@ class LeafWetness(Sensor):
864866 _attr_translation_key : str = "leaf_wetness"
865867 _divisor = 100
866868 _attr_native_unit_of_measurement = PERCENTAGE
869+ _attr_primary_weight = 1
867870
868871
869872@MULTI_MATCH (cluster_handler_names = CLUSTER_HANDLER_ILLUMINANCE )
@@ -874,6 +877,7 @@ class Illuminance(Sensor):
874877 _attr_device_class : SensorDeviceClass = SensorDeviceClass .ILLUMINANCE
875878 _attr_state_class : SensorStateClass = SensorStateClass .MEASUREMENT
876879 _attr_native_unit_of_measurement = LIGHT_LUX
880+ _attr_primary_weight = 1
877881
878882 def formatter (self , value : int ) -> int | None :
879883 """Convert illumination data."""
@@ -911,6 +915,7 @@ class SmartEnergyMetering(PollableSensor):
911915 "status" ,
912916 "zcl_unit_of_measurement" ,
913917 }
918+ _attr_primary_weight = 1
914919
915920 _ENTITY_DESCRIPTION_MAP = {
916921 0x00 : SmartEnergyMeteringEntityDescription (
@@ -1221,6 +1226,7 @@ class Pressure(Sensor):
12211226 _attr_state_class : SensorStateClass = SensorStateClass .MEASUREMENT
12221227 _decimals = 0
12231228 _attr_native_unit_of_measurement = UnitOfPressure .HPA
1229+ _attr_primary_weight = 1
12241230
12251231
12261232@MULTI_MATCH (cluster_handler_names = CLUSTER_HANDLER_FLOW )
@@ -1232,6 +1238,7 @@ class Flow(Sensor):
12321238 _attr_state_class : SensorStateClass = SensorStateClass .MEASUREMENT
12331239 _divisor = 10
12341240 _attr_native_unit_of_measurement = UnitOfVolumeFlowRate .CUBIC_METERS_PER_HOUR
1241+ _attr_primary_weight = 1
12351242
12361243 def formatter (self , value : int ) -> datetime | int | float | str | None :
12371244 """Handle unknown value state."""
@@ -1249,6 +1256,7 @@ class Temperature(Sensor):
12491256 _attr_state_class : SensorStateClass = SensorStateClass .MEASUREMENT
12501257 _divisor = 100
12511258 _attr_native_unit_of_measurement = UnitOfTemperature .CELSIUS
1259+ _attr_primary_weight = 1
12521260
12531261
12541262@MULTI_MATCH (cluster_handler_names = CLUSTER_HANDLER_DEVICE_TEMPERATURE )
@@ -1262,6 +1270,7 @@ class DeviceTemperature(Sensor):
12621270 _divisor = 100
12631271 _attr_native_unit_of_measurement = UnitOfTemperature .CELSIUS
12641272 _attr_entity_category = EntityCategory .DIAGNOSTIC
1273+ _attr_primary_weight = 1
12651274
12661275
12671276@MULTI_MATCH (cluster_handler_names = CLUSTER_HANDLER_INOVELLI )
@@ -1304,6 +1313,7 @@ class CarbonDioxideConcentration(Sensor):
13041313 _decimals = 0
13051314 _multiplier = 1e6
13061315 _attr_native_unit_of_measurement = CONCENTRATION_PARTS_PER_MILLION
1316+ _attr_primary_weight = 1
13071317
13081318
13091319@MULTI_MATCH (cluster_handler_names = "carbon_monoxide_concentration" )
@@ -1316,6 +1326,7 @@ class CarbonMonoxideConcentration(Sensor):
13161326 _decimals = 0
13171327 _multiplier = 1e6
13181328 _attr_native_unit_of_measurement = CONCENTRATION_PARTS_PER_MILLION
1329+ _attr_primary_weight = 1
13191330
13201331
13211332@MULTI_MATCH (generic_ids = "cluster_handler_0x042e" , stop_on_match_group = "voc_level" )
@@ -1329,6 +1340,7 @@ class VOCLevel(Sensor):
13291340 _decimals = 0
13301341 _multiplier = 1e6
13311342 _attr_native_unit_of_measurement = CONCENTRATION_MICROGRAMS_PER_CUBIC_METER
1343+ _attr_primary_weight = 1
13321344
13331345
13341346@MULTI_MATCH (
@@ -1347,6 +1359,7 @@ class PPBVOCLevel(Sensor):
13471359 _decimals = 0
13481360 _multiplier = 1
13491361 _attr_native_unit_of_measurement = CONCENTRATION_PARTS_PER_BILLION
1362+ _attr_primary_weight = 1
13501363
13511364
13521365@MULTI_MATCH (cluster_handler_names = "pm25" )
@@ -1359,6 +1372,7 @@ class PM25(Sensor):
13591372 _decimals = 0
13601373 _multiplier = 1
13611374 _attr_native_unit_of_measurement = CONCENTRATION_MICROGRAMS_PER_CUBIC_METER
1375+ _attr_primary_weight = 1
13621376
13631377
13641378@MULTI_MATCH (cluster_handler_names = "formaldehyde_concentration" )
@@ -1371,6 +1385,7 @@ class FormaldehydeConcentration(Sensor):
13711385 _decimals = 0
13721386 _multiplier = 1e6
13731387 _attr_native_unit_of_measurement = CONCENTRATION_PARTS_PER_MILLION
1388+ _attr_primary_weight = 1
13741389
13751390
13761391@MULTI_MATCH (
0 commit comments