Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
dmulcahey committed Aug 17, 2024
1 parent 748d3d5 commit 0bd8acb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion zha/application/gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ async def async_initialize_devices_and_entities(self) -> None:
*(dev.async_initialize(from_cache=True) for dev in self.devices.values())
)

if not self.config.config.device_options.allow_mains_startup_polling:
if not self.config.config.device_options.enable_mains_startup_polling:
_LOGGER.debug("Polling of mains powered devices at startup is disabled")
return

Expand Down
2 changes: 1 addition & 1 deletion zha/application/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ class DeviceOptions:
consider_unavailable_battery: int = dataclasses.field(
default=CONF_DEFAULT_CONSIDER_UNAVAILABLE_BATTERY
)
allow_mains_startup_polling: bool = dataclasses.field(default=True)
enable_mains_startup_polling: bool = dataclasses.field(default=True)


@dataclass(kw_only=True, slots=True)
Expand Down

0 comments on commit 0bd8acb

Please sign in to comment.