Fix Fitbit state for values over 999 (#85251)

* Remove comma thousands formatting

* Add calorie and bpm to units

* Updating device and state classes

* Revert "Updating device and state classes"

This reverts commit ae77cf3cd7.

* Revert "Add calorie and bpm to units"

This reverts commit 7d82bb1c12.

* Removing unnecessary formatting
This commit is contained in:
Carlos Cristobal 2023-01-06 06:12:41 -07:00 committed by GitHub
parent bd8cb4f166
commit 8bb5763ea0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -449,7 +449,7 @@ class FitbitSensor(SensorEntity):
self._attr_native_value = raw_state
else:
try:
self._attr_native_value = f"{int(raw_state):,}"
self._attr_native_value = int(raw_state)
except TypeError:
self._attr_native_value = raw_state