Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions sonoff/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -23,10 +24,6 @@

DOMAIN = "sonoff"

REQUIREMENTS = ['uuid', 'websocket-client==0.54.0']

import websocket

_LOGGER = logging.getLogger(__name__)

CONFIG_SCHEMA = vol.Schema({
Expand Down
8 changes: 8 additions & 0 deletions sonoff/manifest.json
Original file line number Diff line number Diff line change
@@ -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"]
}