Skip to content

Commit df90c94

Browse files
authored
Fix the entity category for the valve position sensor (#555)
* Fix the entity category for the valve position sensor * Fix name
1 parent ef40339 commit df90c94

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

python_scripts/shellies_discovery_gen2.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -604,10 +604,11 @@
604604
KEY_UNIT: UNIT_PERCENT,
605605
KEY_VALUE_TEMPLATE: TPL_BATTERY_PERCENT,
606606
}
607-
DESCRIPTION_BLU_TRV_VALVE_POSITION = {
607+
DESCRIPTION_SENSOR_BLU_TRV_VALVE_POSITION = {
608608
KEY_ENABLED_BY_DEFAULT: False,
609609
KEY_NAME: "Valve position",
610610
KEY_ICON: "mdi:pipe-valve",
611+
KEY_ENTITY_CATEGORY: ENTITY_CATEGORY_DIAGNOSTIC,
611612
KEY_STATE_TOPIC: TOPIC_STATUS_BLU_TRV,
612613
KEY_UNIT: UNIT_PERCENT,
613614
KEY_VALUE_TEMPLATE: TPL_BLU_TRV_VALVE_POSITION,
@@ -1600,7 +1601,7 @@ def get_component_ids(component: str, config):
16001601
ATTR_SENSORS: {
16011602
SENSOR_SIGNAL_STRENGTH: DESCRIPTION_SENSOR_BLU_TRV_SIGNAL_STRENGTH,
16021603
SENSOR_BATTERY: DESCRIPTION_SENSOR_BLU_TRV_BATTERY,
1603-
SENSOR_VALVE_POSITION: DESCRIPTION_BLU_TRV_VALVE_POSITION,
1604+
SENSOR_VALVE_POSITION: DESCRIPTION_SENSOR_BLU_TRV_VALVE_POSITION,
16041605
},
16051606
ATTR_BUTTONS: {
16061607
BUTTON_CALIBRATE: DESCRIPTION_BUTTON_BLU_TRV_CALIBRATE,

0 commit comments

Comments
 (0)