Traceback (most recent call last):


 "/usr/src/app/homeassistant/core.py", line 1141, in async_call

self._execute_service(handler, service_call))


 "/usr/src/app/homeassistant/core.py", line 1163, in _execute_service

await handler.func(service_call)


 "/usr/src/app/homeassistant/helpers/entity_component.py", line 194, in handle_service

required_features


 "/usr/src/app/homeassistant/helpers/service.py", line 316, in entity_service_call

future.result()
# pop exception if have


 "/usr/src/app/homeassistant/helpers/service.py", line 337, in _handle_service_platform_call

await getattr(entity, func)(**data)


 "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run

result = self.fn(*self.args, **self.kwargs)


 "/usr/src/app/homeassistant/components/yeelight/light.py", line 554, in turn_off

self.device.turn_off(duration=duration, light_type=self.light_type)


 "/usr/src/app/homeassistant/components/yeelight/__init__.py", line 254, in turn_off

self.bulb.turn_off(duration=duration, light_type=light_type)


 "<decorator-gen-8>", line 2, in turn_off


 "/usr/local/lib/python3.7/site-packages/yeelight/main.py", line 114, in _command

result = self.send_command(method, params).get("result", [])


 "/usr/local/lib/python3.7/site-packages/yeelight/main.py", line 397, in send_command

self.__socket.close()
AttributeError: 'NoneType' object has no attribute 'close'

Traceback (most recent call last):


 "/usr/bin/salt-call", line 11, in <module>

load_entry_point('salt==3000', 'console_scripts', 'salt-call')()


 "/usr/lib/python2.7/dist-packages/salt/scripts.py", line 445, in salt_call

client.run()


 "/usr/lib/python2.7/dist-packages/salt/cli/call.py", line 57, in run

caller.run()


 "/usr/lib/python2.7/dist-packages/salt/cli/caller.py", line 119, in run

ret = self.call()


 "/usr/lib/python2.7/dist-packages/salt/cli/caller.py", line 218, in call

ret['return'] = self.minion.executors[fname](self.opts, data, func, args, kwargs)


 "/usr/lib/python2.7/dist-packages/salt/executors/direct_call.py", line 12, in execute

return func(*args, **kwargs)


 "/usr/lib/python2.7/dist-packages/salt/modules/mysql.py", line 858, in version

dbc = _connect(**connection_args)


 "/usr/lib/python2.7/dist-packages/salt/modules/mysql.py", line 392, in _connect

dbc = MySQLdb.connect(**connargs)


 "/usr/lib/python2.7/dist-packages/MySQLdb/__init__.py", line 81, in Connect

return Connection(*args, **kwargs)


 "/usr/lib/python2.7/dist-packages/MySQLdb/connections.py", line 173, in __init__

for k, v in conv.items():
AttributeError: 'unicode' object has no attribute 'items'
