@decorator_utils.singleton
class MerossWrapper(object):
- """Note that instantiating this class causes HTTP traffic with an
- external Meross server. Meross blocks customers who hit their
- servers too aggressively so MerossOutlet is lazy about creating
- instances of this class.
+ """Global singleton helper class for MerossOutlets. Note that
+ instantiating this class causes HTTP traffic with an external
+ Meross server. Meross blocks customers who hit their servers too
+ aggressively so MerossOutlet is lazy about creating instances of
+ this class.
"""
-
def __init__(self):
self.loop = asyncio.get_event_loop()
self.email = os.environ.get('MEROSS_EMAIL') or scott_secrets.MEROSS_EMAIL