Traceback (most recent call last):


 "/usr/local/lib/python3.5/asyncio/tasks.py", line 240, in _step

result = coro.send(None)


 "/home/circleci/repo/homeassistant/helpers/entity_platform.py", line 365, in _async_add_entity

await entity.async_update_ha_state()


 "/home/circleci/repo/homeassistant/helpers/entity.py", line 225, in async_update_ha_state

self._async_write_ha_state()


 "/home/circleci/repo/homeassistant/helpers/entity.py", line 248, in _async_write_ha_state

state = self.state


 "/home/circleci/repo/homeassistant/components/air_quality/__init__.py", line 143, in state

return self.particulate_matter_2_5


 "/home/circleci/repo/homeassistant/components/dyson/air_quality.py", line 88, in particulate_matter_2_5

return int(self._device.environmental_state.particulate_matter_25)
TypeError: int() argument must be a string, a bytes-like object or a number, not 'Mock'

Traceback (most recent call last):


 "<Project>/env/bin/connexion", line 10, in <module>

sys.exit(main())


 "<Project>/env/lib/python3.7/site-packages/click/core.py", line 764, in __call__

return self.main(*args, **kwargs)


 "<Project>/env/lib/python3.7/site-packages/click/core.py", line 717, in main

rv = self.invoke(ctx)


 "<Project>/env/lib/python3.7/site-packages/click/core.py", line 1137, in invoke

return _process_result(sub_ctx.command.invoke(sub_ctx))


 "<Project>/env/lib/python3.7/site-packages/click/core.py", line 956, in invoke

return ctx.invoke(self.callback, **ctx.params)


 "<Project>/env/lib/python3.7/site-packages/click/core.py", line 555, in invoke

return callback(*args, **kwargs)


 "<Project>/env/lib/python3.7/site-packages/connexion/cli.py", line 202, in run

**api_extra_args)


 "<Project>/env/lib/python3.7/site-packages/connexion/apps/flask_app.py", line 54, in add_api

api = super(FlaskApp, self).add_api(specification, **kwargs)


 "<Project>/env/lib/python3.7/site-packages/connexion/apps/abstract.py", line 155, in add_api

options=api_options.as_dict())


 "<Project>/env/lib/python3.7/site-packages/connexion/apis/abstract.py", line 73, in __init__

self.specification = Specification.load(specification, arguments=arguments)


 "<Project>/env/lib/python3.7/site-packages/connexion/spec.py", line 151, in load

return cls.from_file(spec, arguments=arguments)


 "<Project>/env/lib/python3.7/site-packages/connexion/spec.py", line 108, in from_file

return cls.from_dict(spec)


 "<Project>/env/lib/python3.7/site-packages/connexion/spec.py", line 146, in from_dict

return OpenAPISpecification(spec)


 "<Project>/env/lib/python3.7/site-packages/connexion/spec.py", line 40, in __init__

self._spec = resolve_refs(raw_spec)


 "<Project>/env/lib/python3.7/site-packages/connexion/json_schema.py", line 49, in resolve_refs

res = _do_resolve(spec)


 "<Project>/env/lib/python3.7/site-packages/connexion/json_schema.py", line 43, in _do_resolve

node[k] = _do_resolve(v)


 "<Project>/env/lib/python3.7/site-packages/connexion/json_schema.py", line 43, in _do_resolve

node[k] = _do_resolve(v)


 "<Project>/env/lib/python3.7/site-packages/connexion/json_schema.py", line 43, in _do_resolve

node[k] = _do_resolve(v)

[Previous line repeated 1 more time]


 "<Project>/env/lib/python3.7/site-packages/connexion/json_schema.py", line 46, in _do_resolve

node[i] = _do_resolve(node[i])


 "<Project>/env/lib/python3.7/site-packages/connexion/json_schema.py", line 34, in _do_resolve

node.update(deep_get(spec, path))


 "<Project>/env/lib/python3.7/site-packages/connexion/utils.py", line 64, in deep_get

return deep_get(obj[keys[0]], keys[1:])


 "<Project>/env/lib/python3.7/site-packages/connexion/utils.py", line 64, in deep_get

return deep_get(obj[keys[0]], keys[1:])


 "<Project>/env/lib/python3.7/site-packages/connexion/utils.py", line 64, in deep_get

return deep_get(obj[keys[0]], keys[1:])

[Previous line repeated 2 more times]
TypeError: list indices must be integers or slices, not str
