Set some Switchbot entity names to none (#90846)
This commit is contained in:
parent
f1db497efe
commit
914fc570c6
3 changed files with 4 additions and 13 deletions
|
@ -25,12 +25,12 @@ BINARY_SENSOR_TYPES: dict[str, BinarySensorEntityDescription] = {
|
|||
),
|
||||
"motion_detected": BinarySensorEntityDescription(
|
||||
key="pir_state",
|
||||
translation_key="motion",
|
||||
name=None,
|
||||
device_class=BinarySensorDeviceClass.MOTION,
|
||||
),
|
||||
"contact_open": BinarySensorEntityDescription(
|
||||
key="contact_open",
|
||||
translation_key="door_open",
|
||||
name=None,
|
||||
device_class=BinarySensorDeviceClass.DOOR,
|
||||
),
|
||||
"contact_timeout": BinarySensorEntityDescription(
|
||||
|
@ -46,7 +46,7 @@ BINARY_SENSOR_TYPES: dict[str, BinarySensorEntityDescription] = {
|
|||
),
|
||||
"door_open": BinarySensorEntityDescription(
|
||||
key="door_status",
|
||||
translation_key="door_open",
|
||||
name=None,
|
||||
device_class=BinarySensorDeviceClass.DOOR,
|
||||
),
|
||||
"unclosed_alarm": BinarySensorEntityDescription(
|
||||
|
|
|
@ -67,7 +67,7 @@ SENSOR_TYPES: dict[str, SensorEntityDescription] = {
|
|||
),
|
||||
"temperature": SensorEntityDescription(
|
||||
key="temperature",
|
||||
translation_key="temperature",
|
||||
name=None,
|
||||
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
device_class=SensorDeviceClass.TEMPERATURE,
|
||||
|
|
|
@ -64,12 +64,6 @@
|
|||
"calibration": {
|
||||
"name": "Calibration"
|
||||
},
|
||||
"motion": {
|
||||
"name": "[%key:component::binary_sensor::entity_component::motion::name%]"
|
||||
},
|
||||
"door_open": {
|
||||
"name": "[%key:component::binary_sensor::entity_component::door::name%]"
|
||||
},
|
||||
"door_timeout": {
|
||||
"name": "Timeout"
|
||||
},
|
||||
|
@ -102,9 +96,6 @@
|
|||
"humidity": {
|
||||
"name": "[%key:component::sensor::entity_component::humidity::name%]"
|
||||
},
|
||||
"temperature": {
|
||||
"name": "[%key:component::sensor::entity_component::temperature::name%]"
|
||||
},
|
||||
"power": {
|
||||
"name": "[%key:component::sensor::entity_component::power::name%]"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue