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

Update actual_file_to_check with rendered path #24451

Merged
merged 2 commits into from
Jun 17, 2022
Merged

Commits on Jun 14, 2022

  1. Update actual_file_to_check with rendered path

    The new added attribute `self.actual_file_to_check` is not one of template_fields and is initiated in `self.__init__()`. So, it need to be updated after `self.path` is rendered. Otherwise, the template in `self.path` will not work.
    remem9527 authored Jun 14, 2022
    Configuration menu
    Copy the full SHA
    d2432ed View commit details
    Browse the repository at this point in the history

Commits on Jun 17, 2022

  1. Initiate actual_file_to_check in poke()

    It is not necessary for `self.actual_file_to_check` to be an attribute. Deleted it from `__init__`. Replaced it with a local variable in `SFTPSensor.poker()`.
    remem9527 authored Jun 17, 2022
    Configuration menu
    Copy the full SHA
    fe0be67 View commit details
    Browse the repository at this point in the history