brianberg / ha-nicehash

NiceHash Home Assistant Integration
MIT License
21 stars 12 forks source link

Error during setup of component nicehash #13

Open cybermerlo opened 3 years ago

cybermerlo commented 3 years ago

Version of the custom_component

0.1.1

Configuration

nicehash: organization_id: # api_key: # api_secret: # currency: EUR # (default = USD) balances: true # (default = false) - rigs: true # (default = false) - devices: true # (default = false) - payouts: true # (default = false) -

Error during setup of component nicehash Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/setup.py", line 255, in _async_setup_component result = await task File "/config/custom_components/nicehash/init.py", line 63, in async_setup nicehash_config = config[DOMAIN] KeyError: 'nicehash'

Describe the bug

After the installation via HACS, after the reboot i get the error above

Debug log

2021-09-06 16:27:45 ERROR (MainThread) [homeassistant.setup] Error during setup of component nicehash Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/setup.py", line 255, in _async_setup_component result = await task File "/config/custom_components/nicehash/init.py", line 63, in async_setup nicehash_config = config[DOMAIN] KeyError: 'nicehash'