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(
|
"motion_detected": BinarySensorEntityDescription(
|
||||||
key="pir_state",
|
key="pir_state",
|
||||||
translation_key="motion",
|
name=None,
|
||||||
device_class=BinarySensorDeviceClass.MOTION,
|
device_class=BinarySensorDeviceClass.MOTION,
|
||||||
),
|
),
|
||||||
"contact_open": BinarySensorEntityDescription(
|
"contact_open": BinarySensorEntityDescription(
|
||||||
key="contact_open",
|
key="contact_open",
|
||||||
translation_key="door_open",
|
name=None,
|
||||||
device_class=BinarySensorDeviceClass.DOOR,
|
device_class=BinarySensorDeviceClass.DOOR,
|
||||||
),
|
),
|
||||||
"contact_timeout": BinarySensorEntityDescription(
|
"contact_timeout": BinarySensorEntityDescription(
|
||||||
|
@ -46,7 +46,7 @@ BINARY_SENSOR_TYPES: dict[str, BinarySensorEntityDescription] = {
|
||||||
),
|
),
|
||||||
"door_open": BinarySensorEntityDescription(
|
"door_open": BinarySensorEntityDescription(
|
||||||
key="door_status",
|
key="door_status",
|
||||||
translation_key="door_open",
|
name=None,
|
||||||
device_class=BinarySensorDeviceClass.DOOR,
|
device_class=BinarySensorDeviceClass.DOOR,
|
||||||
),
|
),
|
||||||
"unclosed_alarm": BinarySensorEntityDescription(
|
"unclosed_alarm": BinarySensorEntityDescription(
|
||||||
|
|
|
@ -67,7 +67,7 @@ SENSOR_TYPES: dict[str, SensorEntityDescription] = {
|
||||||
),
|
),
|
||||||
"temperature": SensorEntityDescription(
|
"temperature": SensorEntityDescription(
|
||||||
key="temperature",
|
key="temperature",
|
||||||
translation_key="temperature",
|
name=None,
|
||||||
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
|
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
|
||||||
state_class=SensorStateClass.MEASUREMENT,
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
device_class=SensorDeviceClass.TEMPERATURE,
|
device_class=SensorDeviceClass.TEMPERATURE,
|
||||||
|
|
|
@ -64,12 +64,6 @@
|
||||||
"calibration": {
|
"calibration": {
|
||||||
"name": "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": {
|
"door_timeout": {
|
||||||
"name": "Timeout"
|
"name": "Timeout"
|
||||||
},
|
},
|
||||||
|
@ -102,9 +96,6 @@
|
||||||
"humidity": {
|
"humidity": {
|
||||||
"name": "[%key:component::sensor::entity_component::humidity::name%]"
|
"name": "[%key:component::sensor::entity_component::humidity::name%]"
|
||||||
},
|
},
|
||||||
"temperature": {
|
|
||||||
"name": "[%key:component::sensor::entity_component::temperature::name%]"
|
|
||||||
},
|
|
||||||
"power": {
|
"power": {
|
||||||
"name": "[%key:component::sensor::entity_component::power::name%]"
|
"name": "[%key:component::sensor::entity_component::power::name%]"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue