Add entity translations to FiveM (#95370)
This commit is contained in:
parent
4b9bfe9a50
commit
1a8bc1930c
4 changed files with 24 additions and 5 deletions
|
@ -32,20 +32,20 @@ class FiveMSensorEntityDescription(SensorEntityDescription, FiveMEntityDescripti
|
|||
SENSORS: tuple[FiveMSensorEntityDescription, ...] = (
|
||||
FiveMSensorEntityDescription(
|
||||
key=NAME_PLAYERS_MAX,
|
||||
name=NAME_PLAYERS_MAX,
|
||||
translation_key="max_players",
|
||||
icon=ICON_PLAYERS_MAX,
|
||||
native_unit_of_measurement=UNIT_PLAYERS_MAX,
|
||||
),
|
||||
FiveMSensorEntityDescription(
|
||||
key=NAME_PLAYERS_ONLINE,
|
||||
name=NAME_PLAYERS_ONLINE,
|
||||
translation_key="online_players",
|
||||
icon=ICON_PLAYERS_ONLINE,
|
||||
native_unit_of_measurement=UNIT_PLAYERS_ONLINE,
|
||||
extra_attrs=[ATTR_PLAYERS_LIST],
|
||||
),
|
||||
FiveMSensorEntityDescription(
|
||||
key=NAME_RESOURCES,
|
||||
name=NAME_RESOURCES,
|
||||
translation_key="resources",
|
||||
icon=ICON_RESOURCES,
|
||||
native_unit_of_measurement=UNIT_RESOURCES,
|
||||
extra_attrs=[ATTR_RESOURCES_LIST],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue