Skip to content

Commit

Permalink
chore: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
TheJefe committed Sep 24, 2023
1 parent 5f5cdf6 commit c1260e9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion custom_components/moonraker/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,9 @@ async def async_setup_optional_sensors(coordinator, entry, async_add_entities):
key="speed_factor",
name="Speed factor",
value_fn=lambda sensor: round(
sensor.coordinator.data["status"]["gcode_move"]["speed_factor"] * 100, 2
sensor.coordinator.data["status"]["gcode_move"]["speed_factor"]
* 100,
2,
),
subscriptions=[("gcode_move", "speed_factor")],
icon="mdi:speedometer",
Expand Down

0 comments on commit c1260e9

Please sign in to comment.