homeassistantchina / custom_components

non-official HASS components.
45 stars 16 forks source link

I've got some error #4

Open thomastian opened 7 years ago

thomastian commented 7 years ago

2017-09-12 09:27:38 INFO (SyncWorker_3) [homeassistant.loader] Loaded persistent_notification from homeassistant.components.persistent_notification 2017-09-12 09:27:38 ERROR (MainThread) [homeassistant.components.switch] Error while setting up platform chuangmi_ir Traceback (most recent call last): File "/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity_component.py", line 164, in _async_setup_platform SLOW_SETUP_MAX_WAIT, loop=self.hass.loop) File "/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/asyncio/tasks.py", line 358, in wait_for return fut.result() File "/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/asyncio/futures.py", line 245, in result raise self._exception File "/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/concurrent/futures/thread.py", line 55, in run result = self.fn(*self.args, **self.kwargs) File "/Users/tianyucheng/.homeassistant/custom_components/switch/chuangmi_ir.py", line 103, in setup_platform ir_remote = miio.device(host, token) File "/Users/tianyucheng/.homeassistant/deps/lib/python/site-packages/miio/miio.py", line 16, in init self.token = bytes.fromhex(token) ValueError: non-hexadecimal number found in fromhex() arg at position 0

hass 0.52.1

thomastian commented 7 years ago

sorry,I had found wrong number "token".