NickWaterton / eWeLink-mqtt

Bridge to control Sonoff Devices via MQTT
MIT License
19 stars 5 forks source link

Cannot start (custom_components?) #8

Open borazslo opened 8 months ago

borazslo commented 8 months ago

I've made a fresh clone of the repo than I've started the ewelink.py, but I'received the following error message: Traceback (most recent call last): File "ewelink.py", line 189, in from custom_components.sonoff.core.ewelink.init import XRegistry, SIGNAL_ADD_ENTITIES File "[...]/eWeLink-mqtt/custom_components/sonoff/init.py", line 28, in from .core import devices as core_devices File "[...]/eWeLink-mqtt/custom_components/sonoff/core/devices.py", line 20, in from .ewelink import XDevice File "[...]/eWeLink-mqtt/custom_components/sonoff/core/ewelink/init.py", line 7, in from .base import SIGNAL_CONNECTED, SIGNAL_UPDATE, XDevice, XRegistryBase File "[...]/eWeLink-mqtt/custom_components/sonoff/core/ewelink/base.py", line 35, in class XRegistryBase: File "[...]/eWeLink-mqtt/custom_components/sonoff/core/ewelink/base.py", line 36, in XRegistryBase dispatcher: dict[str, list[Callable]] = None TypeError: 'type' object is not subscriptable

Python 3.8.2, OSX

Please, help me!

borazslo commented 8 months ago

Updateing to Python 3.10 has solved my problem.