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

Fix regression with generic action notify trigger in notifier service #4591

Merged
merged 3 commits into from Mar 13, 2019

Conversation

Kami
Copy link
Member

@Kami Kami commented Mar 13, 2019

Change in #4536 inadvertently introduced a regression inside notifier service which would cause generic action notify trigger to only be dispatched for completed states even if custom states were specified using action_sensor.emit_when config option.

Tests didn't catch this issue, because we only had tests for _post_generic_trigger method, but not for main process() one where the issue lived.

Thanks to Shu Sugimoto (@shusugmt) for reporting this issue.

to only be dispatched on completed states, but not on custom states if
action_sensor.emit_when config option was configured.

Issue was inadverently introduced in
#4536,

Issue reported by Hiroyasu OHYAMA (@userlocalhost).
@Kami Kami added the bug label Mar 13, 2019
@Kami Kami added this to the 2.10.4 milestone Mar 13, 2019
Copy link
Contributor

@bigmstone bigmstone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@Kami Kami merged commit fd92975 into master Mar 13, 2019
@Kami Kami deleted the fix_generic_trigger_regression branch March 13, 2019 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants