Fix wrong power limit decimal place in IronOS (#134902)
parent
dd5625436b
commit
a9540e893f
|
@ -188,8 +188,8 @@ PINECIL_NUMBER_DESCRIPTIONS: tuple[IronOSNumberEntityDescription, ...] = (
|
|||
characteristic=CharSetting.POWER_LIMIT,
|
||||
mode=NumberMode.BOX,
|
||||
native_min_value=0,
|
||||
native_max_value=12,
|
||||
native_step=0.1,
|
||||
native_max_value=120,
|
||||
native_step=5,
|
||||
entity_category=EntityCategory.CONFIG,
|
||||
native_unit_of_measurement=UnitOfPower.WATT,
|
||||
entity_registry_enabled_default=False,
|
||||
|
|
|
@ -620,10 +620,10 @@
|
|||
}),
|
||||
'area_id': None,
|
||||
'capabilities': dict({
|
||||
'max': 12,
|
||||
'max': 120,
|
||||
'min': 0,
|
||||
'mode': <NumberMode.BOX: 'box'>,
|
||||
'step': 0.1,
|
||||
'step': 5,
|
||||
}),
|
||||
'config_entry_id': <ANY>,
|
||||
'device_class': None,
|
||||
|
@ -656,10 +656,10 @@
|
|||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
'friendly_name': 'Pinecil Power limit',
|
||||
'max': 12,
|
||||
'max': 120,
|
||||
'min': 0,
|
||||
'mode': <NumberMode.BOX: 'box'>,
|
||||
'step': 0.1,
|
||||
'step': 5,
|
||||
'unit_of_measurement': <UnitOfPower.WATT: 'W'>,
|
||||
}),
|
||||
'context': <ANY>,
|
||||
|
|
|
@ -126,7 +126,7 @@ async def test_state(
|
|||
2.0,
|
||||
2.0,
|
||||
),
|
||||
("number.pinecil_power_limit", CharSetting.POWER_LIMIT, 12.0, 12.0),
|
||||
("number.pinecil_power_limit", CharSetting.POWER_LIMIT, 120, 120),
|
||||
("number.pinecil_quick_charge_voltage", CharSetting.QC_IDEAL_VOLTAGE, 9.0, 9.0),
|
||||
(
|
||||
"number.pinecil_short_press_temperature_step",
|
||||
|
|
Loading…
Reference in New Issue