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

UndefinedError: 'None' has no attribute 'event' #43

Open
m4dm4xi opened this issue May 30, 2024 · 2 comments
Open

UndefinedError: 'None' has no attribute 'event' #43

m4dm4xi opened this issue May 30, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@m4dm4xi
Copy link

m4dm4xi commented May 30, 2024

Hi Samuel,

I´m trying your script and I´m really astonished by what it is capable of.

However, at the moment I´m running into an error, which I can´t really pinpoint and which might be a timeout exception which isn´t caught properly.

I´m failing in this step of the script:
image

and the error which is thrown is: "UndefinedError: 'None' has no attribute 'event'"

The timeout is configured to 15min and it seems like the error is triggered after this timeout:
image

It is very possible that the notification indeed timed out because actually one option was configured which then again didn´t show up on android. I havent found out yet why it wasn´t displayed.

I´m using 2.0.2 beta of the multi-device version. However, atm I´m only notifying one device.

Blueprint Config was:

alias: 🔔 Somebody goes to bed
use_blueprint:
  path: samuelthng/notifications.yaml
  input:
    notify_device:
      - 9c3bd60a496169fb77bb66b6cc3fd1c0
    title: EHS34 Bett
    subtitle: Jemand hat sich gerade hingelegt.
    message: Jemand hat sich gerade ins Bettchen gelegt.
    icon: mdi:bed-double
    confirm_option_mode: action
    confirm_text: Rolladen runter
    confirm_action:
      - service: cover.close_cover
        metadata: {}
        data: {}
        target:
          entity_id:
            - cover.jalou_sleep_left
            - cover.jalou_sleep_right
    dismiss_enabled: false
    run_timeout_actions: false
    attachment_type: camera_entity
    attachment_camera_entity: camera.wohnzimmer
icon: mdi:bed-double
@samuelthng
Copy link
Owner

Ahh, thank you for reporting this, I see the issue.

I only check when trigger is none, only in two specific conditions, where there is really 4 possible permutations.

I can push a fix for this but it may take some time.

@samuelthng samuelthng added the bug Something isn't working label May 30, 2024
@samuelthng samuelthng self-assigned this May 30, 2024
@m4dm4xi
Copy link
Author

m4dm4xi commented Jun 2, 2024

Thanks a lot!

No rush needed :).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants