From 8bb5763ea0e53aed808f8411e5e0708b619f0023 Mon Sep 17 00:00:00 2001 From: Carlos Cristobal <87995947+sw-carlos-cristobal@users.noreply.github.com> Date: Fri, 6 Jan 2023 06:12:41 -0700 Subject: [PATCH] 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 ae77cf3cd74bf3e09ac70a0a4be4a73e0f7d3223. * Revert "Add calorie and bpm to units" This reverts commit 7d82bb1c1231ef4c45ca08dda5d30d10c9a0c0a0. * Removing unnecessary formatting --- homeassistant/components/fitbit/sensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/fitbit/sensor.py b/homeassistant/components/fitbit/sensor.py index 0f3f4c22ff7..bc6931a29c6 100644 --- a/homeassistant/components/fitbit/sensor.py +++ b/homeassistant/components/fitbit/sensor.py @@ -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