Skip to content

Commit

Permalink
Fix f-string formatting (#318)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vyolex committed Apr 13, 2024
1 parent b6b224d commit 342f2fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/moonraker/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ async def async_setup_optional_sensors(coordinator, entry, async_add_entities):
desc = MoonrakerSensorDescription(
key=f"{split_obj[0]}_{split_obj[1]}_power",
status_key=obj,
name=f"{split_obj[1].replace("_", " ")} Power".title(),
name=f"{split_obj[1].replace('_', ' ')} Power".title(),
value_fn=lambda sensor: int(
sensor.coordinator.data["status"][sensor.status_key]["power"] * 100
),
Expand Down

0 comments on commit 342f2fa

Please sign in to comment.