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 ```python
import batman import batman
from platypush.response import Response from platypush.message.response import Response
from .. import LightPlugin from .. import LightPlugin

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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