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
|
@ -397,7 +397,7 @@ class EntityPlatform:
|
|||
raise
|
||||
|
||||
if (
|
||||
(self.config_entry and self.config_entry.system_options.disable_polling)
|
||||
(self.config_entry and self.config_entry.pref_disable_polling)
|
||||
or self._async_unsub_polling is not None
|
||||
or not any(entity.should_poll for entity in self.entities.values())
|
||||
):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue