diff --git a/custom_components/frigate/sensor.py b/custom_components/frigate/sensor.py index b2422e33..de8f35da 100644 --- a/custom_components/frigate/sensor.py +++ b/custom_components/frigate/sensor.py @@ -287,11 +287,11 @@ def state(self) -> float | None: data = ( self.coordinator.data.get("gpu_usages", {}) .get(self._gpu_name, {}) - .get("gpu_usage") + .get("gpu") ) if data is not None: try: - return float(data.replace("%", "")) + return float(data.replace("%", "").strip()) except ValueError: pass return None