Skip to content

Commit

Permalink
Fix Sensor Names
Browse files Browse the repository at this point in the history
  • Loading branch information
ReneNulschDE committed Feb 9, 2024
1 parent 63c0647 commit 7a724b6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
1 change: 0 additions & 1 deletion custom_components/mysmartbike/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ def __init__(

self.device = device
self._attr_unique_id = util.slugify(f"{device.serial} {description.key}")
self._attr_name = description.key
self._attr_should_poll = False

self.entity_description = description
Expand Down
12 changes: 11 additions & 1 deletion custom_components/mysmartbike/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,15 @@
"info": {
"api_endpoint_reachable": "MySmartBike API endpoint reachable"
}
},
"entity": {
"sensor": {
"odometry": {
"name": "Ride distance"
},
"state_of_charge": {
"name": "State of charge"
}
}
}
}
}

0 comments on commit 7a724b6

Please sign in to comment.