Skip to content

Commit

Permalink
fix bad sensor
Browse files Browse the repository at this point in the history
  • Loading branch information
mikey0000 committed Aug 14, 2024
1 parent 941165e commit af341b1
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 52 deletions.
2 changes: 1 addition & 1 deletion custom_components/mammotion/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class MammotionSensorEntityDescription(SensorEntityDescription):
state_class=SensorStateClass.MEASUREMENT,
device_class=SensorDeviceClass.SPEED,
native_unit_of_measurement=UnitOfSpeed.METERS_PER_SECOND,
value_fn=lambda mower_data: mower_data.report_data.work.max_run_speed / 100,
value_fn=lambda mower_data: mower_data.report_data.work.man_run_speed / 100,
),
MammotionSensorEntityDescription(
key="progress",
Expand Down
93 changes: 42 additions & 51 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit af341b1

Please sign in to comment.