s/platypush.response/platypush.message.response/g

This commit is contained in:
Fabio Manganiello 2017-12-13 04:21:26 +01:00
parent 462dc2f1c9
commit 33c4d9fb52
8 changed files with 9 additions and 9 deletions

View file

@ -112,7 +112,7 @@ The `__init__.py` will look like this:
```python
import batman
from platypush.response import Response
from platypush.message.response import Response
from .. import LightPlugin

View file

@ -12,7 +12,8 @@ import yaml
from queue import Queue
from threading import Thread
from getopt import getopt
from .response import Response
from .message.response import Response
__author__ = 'Fabio Manganiello <info@fabiomanganiello.com>'
__version__ = '0.3.2'
@ -85,8 +86,7 @@ def _exec_func(args, backend=None, retry=True):
_init_plugin(module_name, reload=True)
_exec_func(args, backend, retry=False)
finally:
if backend:
backend.send_msg({ 'response':str(response) })
if backend: backend.send_msg({ 'response':str(response) })
def on_msg(msg, backend=None):

View file

@ -3,7 +3,7 @@ import sys
import logging
from platypush import get_logging_level
from platypush.response import Response
from platypush.message.response import Response
class Plugin(object):
def __init__(self, config):

View file

@ -2,7 +2,7 @@ import logging
import time
from phue import Bridge
from platypush.response import Response
from platypush.message.response import Response
from .. import LightPlugin

View file

@ -1,6 +1,6 @@
import mpd
from platypush.response import Response
from platypush.message.response import Response
from .. import MusicPlugin

View file

@ -1,6 +1,6 @@
import subprocess
from platypush.response import Response
from platypush.message.response import Response
from .. import Plugin

View file

@ -2,7 +2,7 @@ import logging
import json
from ouimeaux.environment import Environment, UnknownDevice
from platypush.response import Response
from platypush.message.response import Response
from .. import SwitchPlugin