Traceback (most recent call last):


 "/usr/local/lib/python3.6/site-packages/homeassistant/helpers/service.py", line 289, in _handle_service_platform_call

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


 "/usr/local/lib/python3.6/site-packages/homeassistant/components/fan/xiaomi_miio.py", line 566, in async_turn_on

result = await self.async_set_speed(speed)


 "/usr/local/lib/python3.6/site-packages/homeassistant/components/fan/xiaomi_miio.py", line 879, in async_set_speed

self._device.set_mode, OperationMode[speed.title()])


 "/usr/local/lib/python3.6/site-packages/homeassistant/components/fan/xiaomi_miio.py", line 557, in _try_command

_LOGGER.error(mask_error, exc)


 "/usr/local/lib/python3.6/logging/__init__.py", line 1336, in error

self._log(ERROR, msg, args, **kwargs)


 "/usr/local/lib/python3.6/logging/__init__.py", line 1443, in _log

self.handle(record)


 "/usr/local/lib/python3.6/logging/__init__.py", line 1453, in handle

self.callHandlers(record)


 "/usr/local/lib/python3.6/logging/__init__.py", line 1515, in callHandlers

hdlr.handle(record)


 "/usr/local/lib/python3.6/logging/__init__.py", line 864, in handle

self.emit(record)


 "/usr/local/lib/python3.6/site-packages/homeassistant/components/system_log/__init__.py", line 130, in emit

entry = self._create_entry(record, stack)


 "/usr/local/lib/python3.6/site-packages/homeassistant/components/system_log/__init__.py", line 113, in _create_entry

'message': record.getMessage(),


 "/usr/local/lib/python3.6/logging/__init__.py", line 338, in getMessage

msg = msg % self.args
TypeError: not all arguments converted during string formatting

Traceback (most recent call last):



 "<ipython-input-9-727771084f56>", line 1, in <module>

runfile('C:/Users/FRANCESCO/Desktop/elastictest.py', wdir='C:/Users/FRANCESCO/Desktop')



 "C:\Python36\python-3.6.6.amd64\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 668, in runfile

execfile(filename, namespace)



 "C:\Python36\python-3.6.6.amd64\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 108, in execfile

exec(compile(f.read(), filename, 'exec'), namespace)



 "C:/Users/FRANCESCO/Desktop/elastictest.py", line 11, in <module>

es = Elasticsearch()



 "C:\Python36\python-3.6.6.amd64\lib\site-packages\elasticsearch\client\__init__.py", line 192, in __init__

self.transport = transport_class(_normalize_hosts(hosts), **kwargs)



 "C:\Python36\python-3.6.6.amd64\lib\site-packages\elasticsearch\transport.py", line 127, in __init__

self.set_connections(hosts)



 "C:\Python36\python-3.6.6.amd64\lib\site-packages\elasticsearch\transport.py", line 177, in set_connections

connections = list(zip(connections, hosts))



 "C:\Python36\python-3.6.6.amd64\lib\site-packages\elasticsearch\transport.py", line 173, in _create_connection

return self.connection_class(**kwargs)



 "C:\Python36\python-3.6.6.amd64\lib\site-packages\elasticsearch\connection\http_urllib3.py", line 96, in __init__

super(Urllib3HttpConnection, self).__init__(

TypeError: super(type, obj): obj must be an instance or subtype of type`