Roborock s55 Configuration error - (expected string or bytes-like object)

Hi there,

I am trying to set up my Xiaomi Vacuum in Home Assistant. I am running the following configuration:

# Configure a default setup of Home Assistant (frontend, api, etc)

    customize: !include customize.yaml

# Uncomment this if you are using SSL/TLS, running in Docker container, etc.

# Text to speech
    - platform: google_translate

group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml

    - platform: asuswrt
    interval_seconds: 10
    consider_home: 5

        name: Aanrecht
        name: Bank
        name: Hal
        name: Slaapkamer
        name:  Eettafel

    project_id: notmyproject
    service_account: !include homeassistant.json
    report_state: true
    - light

    username: notmylogin
    password: notmypassword
    protocol: telnet
    port: 23

Adding the following seems to break the configuration.

  - platform: xiaomi_miio
    token: notmytoken

When I check the config using the config checker it spits out the following error in the log:

2020-02-09 21:03:05 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/aiohttp/", line 418, in start
    resp = await task
  File "/usr/local/lib/python3.7/site-packages/aiohttp/", line 458, in _handle
    resp = await handler(request)
  File "/usr/local/lib/python3.7/site-packages/aiohttp/", line 119, in impl
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/", line 39, in real_ip_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/", line 72, in ban_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/", line 135, in auth_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/", line 123, in handle
    result = await result
  File "/usr/src/homeassistant/homeassistant/components/config/", line 29, in post
    errors = await async_check_ha_config_file(["hass"])
  File "/usr/src/homeassistant/homeassistant/", line 805, in async_check_ha_config_file
    res = await check_config.async_check_ha_config_file(hass)
  File "/usr/src/homeassistant/homeassistant/helpers/", line 162, in async_check_ha_config_file
    hass, p_name
  File "/usr/src/homeassistant/homeassistant/", line 55, in async_get_integration_with_requirements
    hass, integration.domain, integration.requirements
  File "/usr/src/homeassistant/homeassistant/", line 99, in async_process_requirements
    if pkg_util.is_installed(req):
  File "/usr/src/homeassistant/homeassistant/util/", line 44, in is_installed
    return version(req.project_name) in req
  File "/usr/local/lib/python3.7/site-packages/pkg_resources/", line 3138, in __contains__
    return self.specifier.contains(item, prereleases=True)
  File "/usr/local/lib/python3.7/site-packages/pkg_resources/_vendor/packaging/", line 703, in contains
    item = parse(item)
  File "/usr/local/lib/python3.7/site-packages/pkg_resources/_vendor/packaging/", line 31, in parse
    return Version(version)
  File "/usr/local/lib/python3.7/site-packages/pkg_resources/_vendor/packaging/", line 200, in __init__
    match =
TypeError: expected string or bytes-like object

In fact, the server refuses to boot at all when I add this to the config. It then seems to be causing a lot of cascading errors (which I assume are irrelevant)

Does anybody have a clue what to do?

Hi @Terabyte

Did you find out what caused your issue? Or did you solve it? I have a similar error (expected string or bytes-like object) and no clue how to solve it.