Skip to content

Home Assistant Integration yields errors - expect mandatory 'media-url' #6

@NiiiYaa

Description

@NiiiYaa

Home Assistant Integration yields errors.
When trying to send a message via The notify service - you get errors (see below)
Looks like the integration, as-is, with Home Assistance yields errors. (as It expects a media-url).
If in the file (code) - noyify.py - you disable lines 69-77 (moved those to be comments) the it seems to solve this altogether.
image

See also: https://community.home-assistant.io/t/whatsapp-integrations/615456/11

This is the error:
File "/config/custom_components/wapi/notify.py", line 69, in send_message
if data["media_url"]:
~~~~^^^^^^^^^^^^^
TypeError: 'NoneType' object is not subscriptable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions