Fix Miele induction hob empty state (#149706)

This commit is contained in:
Andrea Turri 2025-07-30 23:38:11 +02:00 committed by GitHub
parent 2706c7d67d
commit ec7fb140ac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 1153 additions and 1 deletions

View File

@ -731,7 +731,7 @@ class MielePlateSensor(MieleSensor):
) )
).name ).name
if self.device.state_plate_step if self.device.state_plate_step
else PlatePowerStep.plate_step_0 else PlatePowerStep.plate_step_0.name
) )

File diff suppressed because it is too large Load Diff

View File

@ -256,3 +256,18 @@ async def test_vacuum_sensor_states(
"""Test robot vacuum cleaner sensor state.""" """Test robot vacuum cleaner sensor state."""
await snapshot_platform(hass, entity_registry, snapshot, setup_platform.entry_id) await snapshot_platform(hass, entity_registry, snapshot, setup_platform.entry_id)
@pytest.mark.parametrize("load_device_file", ["fan_devices.json"])
@pytest.mark.parametrize("platforms", [(SENSOR_DOMAIN,)])
@pytest.mark.usefixtures("entity_registry_enabled_by_default")
async def test_fan_hob_sensor_states(
hass: HomeAssistant,
mock_miele_client: MagicMock,
snapshot: SnapshotAssertion,
entity_registry: er.EntityRegistry,
setup_platform: None,
) -> None:
"""Test robot fan / hob sensor state."""
await snapshot_platform(hass, entity_registry, snapshot, setup_platform.entry_id)