diff --git a/sonoff/__init__.py b/sonoff/__init__.py index 8a5b227..6953fff 100644 --- a/sonoff/__init__.py +++ b/sonoff/__init__.py @@ -2,6 +2,7 @@ import logging, time, hmac, hashlib, random, base64, json, socket, requests, re, threading, hashlib, string import voluptuous as vol import asyncio +import websocket from datetime import timedelta from datetime import datetime @@ -23,10 +24,6 @@ DOMAIN = "sonoff" -REQUIREMENTS = ['uuid', 'websocket-client==0.54.0'] - -import websocket - _LOGGER = logging.getLogger(__name__) CONFIG_SCHEMA = vol.Schema({ diff --git a/sonoff/manifest.json b/sonoff/manifest.json new file mode 100644 index 0000000..81bd207 --- /dev/null +++ b/sonoff/manifest.json @@ -0,0 +1,8 @@ +{ + "domain": "sonoff", + "name": "Sonoff / eWeLink", + "documentation": "https://github.com/peterbuga/HASS-sonoff-ewelink", + "dependencies": [], + "codeowners": ["@peterbuga"], + "requirements": ["uuid", "websocket-client==0.54.0"] +}