Traceback (most recent call last):


 "/opt/datadog-agent/embedded/lib/python3.7/site-packages/datadog_checks/base/checks/prometheus/base_check.py", line 92, in __init__

super(GenericPrometheusCheck, self).__init__(name, init_config, agentConfig, instances)


 "/opt/datadog-agent/embedded/lib/python3.7/site-packages/datadog_checks/base/checks/base.py", line 234, in __init__

if metric_limit > 0:
TypeError: '>' not supported between instances of 'str' and 'int'

system_log_event[L]: timestamp=1518346794.2290583, level=ERROR, message=Error while setting up platform xiaomi_miio, exception=Traceback (most recent call last):


 "/usr/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py", line 84, in async_setup

SLOW_SETUP_MAX_WAIT, loop=hass.loop)


 "/usr/lib/python3.6/asyncio/tasks.py", line 358, in wait_for

return fut.result()


 "/usr/lib/python3.6/asyncio/futures.py", line 245, in result

raise self._exception


 "/usr/lib/python3.6/asyncio/tasks.py", line 180, in _step

result = coro.send(None)


 "/usr/lib/python3.6/asyncio/coroutines.py", line 210, in coro

res = func(*args, **kw)


 "/usr/lib/python3.6/site-packages/homeassistant/components/vacuum/xiaomi_miio.py", line 90, in async_setup_platform

from miio import Vacuum


 "/usr/lib/python3.6/site-packages/miio/__init__.py", line 2, in <module>

from miio.protocol import Message, Utils


 "/usr/lib/python3.6/site-packages/miio/protocol.py", line 179, in <module>

Const(0x2131, Int16ub),


 "/usr/lib/python3.6/site-packages/construct/core.py", line 1894, in __init__

super(Const, self).__init__(subcon)


 "/usr/lib/python3.6/site-packages/construct/core.py", line 291, in __init__

raise TypeError("subcon should be a Construct field")
TypeError: subcon should be a Construct field
