diff --git a/tests/components/onewire/test_config_flow.py b/tests/components/onewire/test_config_flow.py index 2ba52f31c94..27d8436f8c4 100644 --- a/tests/components/onewire/test_config_flow.py +++ b/tests/components/onewire/test_config_flow.py @@ -156,7 +156,7 @@ async def test_user_options_set_single( ) -> None: """Test configuring a single device.""" # Clear config options to certify functionality when starting from scratch - config_entry.options = {} + hass.config_entries.async_update_entry(config_entry, options={}) assert await hass.config_entries.async_setup(config_entry.entry_id) await hass.async_block_till_done()