Fix wrong power limit decimal place in IronOS (#134902)

pull/134920/head
Manu 2025-01-06 19:55:47 +01:00 committed by GitHub
parent dd5625436b
commit a9540e893f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 7 deletions

View File

@ -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,

View File

@ -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>,

View File

@ -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",