Migrate Renault to new entity naming style (#74709)

This commit is contained in:
epenet 2022-07-09 19:12:19 +02:00 committed by GitHub
parent 1cf8b76124
commit d208bd461d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 24 additions and 32 deletions

View file

@ -85,7 +85,7 @@ BINARY_SENSOR_TYPES: tuple[RenaultBinarySensorEntityDescription, ...] = tuple(
key="plugged_in",
coordinator="battery",
device_class=BinarySensorDeviceClass.PLUG,
name="Plugged In",
name="Plugged in",
on_key="plugStatus",
on_value=PlugState.PLUGGED.value,
),
@ -130,7 +130,7 @@ BINARY_SENSOR_TYPES: tuple[RenaultBinarySensorEntityDescription, ...] = tuple(
coordinator="lock_status",
# On means open, Off means closed
device_class=BinarySensorDeviceClass.DOOR,
name=f"{door} Door",
name=f"{door.capitalize()} door",
on_key=f"doorStatus{door.replace(' ','')}",
on_value="open",
)