s/platypush.response/platypush.message.response/g
This commit is contained in:
parent
462dc2f1c9
commit
33c4d9fb52
8 changed files with 9 additions and 9 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import mpd
|
||||
|
||||
from platypush.response import Response
|
||||
from platypush.message.response import Response
|
||||
|
||||
from .. import MusicPlugin
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import subprocess
|
||||
|
||||
from platypush.response import Response
|
||||
from platypush.message.response import Response
|
||||
|
||||
from .. import Plugin
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue