Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[HA Discovery] Do not deactive autodiscovery when discovery_republish_on_reconnect is enabled #1933

Conversation

ssalonen
Copy link
Contributor

@ssalonen ssalonen commented Apr 14, 2024

Do not deactive autodiscovery in certain cases when discovery_republish_on_reconnect (see #1274 and #1290 ) is enabled

The introduction of DiscoveryAutoOffTimer in 3f92e14 / #1541 introduced a regression for the re-publishing of discovery topics (discovery_republish_on_reconnect) as first introduced in #1290 - after DiscoveryAutoOffTimer has elapsed, the system does not republish the topics even when MQTT connection is re-established.

This PR disables the effect of DiscoveryAutoOffTimer when discovery_republish_on_reconnect is enabled

Description:

Checklist:

  • The pull request is done against the latest development branch
  • Only one feature/fix was added per PR and the code change compiles without warnings
  • I accept the DCO.

Specifically, do not deactive autodiscovery in certain cases
when discovery_republish_on_reconnect is enabled

Signed-off-by: Sami Salonen <[email protected]>
@ssalonen ssalonen force-pushed the do-not-disable-autodiscovery-when-republish-on-reconnect branch from c74a3c3 to d4e4d30 Compare April 14, 2024 18:07
@ssalonen ssalonen changed the title Do not deactive autodiscovery when discovery_republish_on_reconnect is enabled [HA Discovery] Do not deactive autodiscovery when discovery_republish_on_reconnect is enabled Apr 14, 2024
@1technophile
Copy link
Owner

Good catch,, thanks

@1technophile 1technophile merged commit d721567 into 1technophile:development Apr 17, 2024
73 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants