Merge system options into pref properties (#51347)
* Make system options future proof * Update tests * Add types
This commit is contained in:
parent
9e3ee73b8b
commit
ee2c950716
27 changed files with 188 additions and 245 deletions
|
@ -60,9 +60,7 @@ async def test_polling_only_updates_entities_it_should_poll(hass):
|
|||
async def test_polling_disabled_by_config_entry(hass):
|
||||
"""Test the polling of only updated entities."""
|
||||
entity_platform = MockEntityPlatform(hass)
|
||||
entity_platform.config_entry = MockConfigEntry(
|
||||
system_options={"disable_polling": True}
|
||||
)
|
||||
entity_platform.config_entry = MockConfigEntry(pref_disable_polling=True)
|
||||
|
||||
poll_ent = MockEntity(should_poll=True)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue