Traceback (most recent call last):


 "/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py", line 272, in _async_add_entity

device_info = entity.device_info


 "/usr/local/lib/python3.6/site-packages/homeassistant/components/zha/entities/entity.py", line 103, in device_info

'name': self._device_state_attributes['friendly_name'],
KeyError: 'friendly_name'

Traceback (most recent call last):


 "/home/rq/PycharmProjects/rqalpha/rqalpha/utils/arg_checker.py", line 400, in api_rule_check_wrapper

return func(*args, **kwargs)


 "/home/rq/PycharmProjects/rqalpha/rqalpha/mod/rqalpha_mod_sys_accounts/api/api_stock.py", line 309, in order_percent

account = Environment.get_instance().portfolio.accounts[DEFAULT_ACCOUNT_TYPE.STOCK.name]
KeyError: 'STOCK'`
