3abb185e1644e7b395201f5021c0e9a230e8df01,homeassistant/components/notify/file.py,,get_service,#Any#Any#,45

Before Change


    // pylint: disable=no-member
    if not filepath.parent.exists():
        try:
            filepath.parent.mkdir(parents=True)
            filepath.touch(mode=0o644, exist_ok=True)
        except:
            _LOGGER.exception("No write permission to given location.")
            // raise PermissionError("") from None

After Change


    filename = config[DOMAIN]["filename"]
    timestamp = config[DOMAIN]["timestamp"]

    return FileNotificationService(hass, filename, timestamp)


// pylint: disable=too-few-public-methods
class FileNotificationService(BaseNotificationService):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: home-assistant/home-assistant
Commit Name: 3abb185e1644e7b395201f5021c0e9a230e8df01
Time: 2015-06-20
Author: fabian@affolter-engineering.ch
File Name: homeassistant/components/notify/file.py
Class Name:
Method Name: get_service


Project Name: Scitator/catalyst
Commit Name: c16df44669828b8566c7bfb87d385c73cd74e460
Time: 2020-05-23
Author: smivvla@gmail.com
File Name: catalyst/dl/runner/core.py
Class Name: Runner
Method Name: trace


Project Name: home-assistant/home-assistant
Commit Name: 832e9a631ef27b7cf531c52207318f188d14335e
Time: 2015-06-20
Author: fabian@affolter-engineering.ch
File Name: homeassistant/components/notify/file.py
Class Name:
Method Name: get_service