Set some Switchbot entity names to none (#90846)

This commit is contained in:
Patrick ZAJDA 2023-07-07 19:38:43 +02:00 committed by GitHub
parent f1db497efe
commit 914fc570c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 13 deletions

View file

@ -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(

View file

@ -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,

View file

@ -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%]"
}