Skip to content

Commit 119ac3e

Browse files
committed
fix: remove conflicting native_unit_of_measurement
The translation file already defines unit_of_measurement for monthly_spent, so we should not set _attr_native_unit_of_measurement in code to avoid the ValueError conflict.
1 parent a89b3f3 commit 119ac3e

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

custom_components/rohlikcz/sensor.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,6 @@ class MonthlySpent(BaseEntity, SensorEntity, RestoreEntity):
436436
_attr_translation_key = "monthly_spent"
437437
_attr_should_poll = False
438438
_attr_state_class = SensorStateClass.TOTAL
439-
_attr_native_unit_of_measurement = "CZK"
440439

441440
def __init__(self, rohlik_account: RohlikAccount) -> None:
442441
super().__init__(rohlik_account)

0 commit comments

Comments
 (0)