Traceback (most recent call last):


 "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 130, in handle_call_service

connection.context(msg),


 "/usr/src/homeassistant/homeassistant/core.py", line 1260, in async_call

task.result()


 "/usr/src/homeassistant/homeassistant/core.py", line 1295, in _execute_service

await handler.func(service_call)


 "/usr/src/homeassistant/homeassistant/components/notify/__init__.py", line 119, in async_notify_message

await notify_service.async_send_message(**kwargs)


 "/config/custom_components/alexa_media/notify.py", line 189, in async_send_message

if data["type"] == "tts":
TypeError: 'NoneType' object is not subscriptable`
$ Traceback (most recent call last):


 "/opt/web2py/gluon/html.py", line 1890, in _validate

(value, errors) = validator(value)


 "/opt/web2py/gluon/packages/dal/pydal/validators.py", line 145, in __call__

return self.validate(value), None


 "/opt/web2py/gluon/packages/dal/pydal/validators.py", line 2764, in validate

return validator_caller(self.other, value)


 "/opt/web2py/gluon/packages/dal/pydal/validators.py", line 153, in validator_caller

value, error = func(value)
TypeError: 'NoneType' object is not callable
