Hue rest switch errors


Have a set of Hue motion sensors, that i can switch with below rest_switch. Seems to work fine.Switching works as expected.

- platform: rest
  resource: !secret motion_sensor_5
  method: put
  name: "Corridor motion sensor switch"
  body_on: '{"config": {"on": true}}'
  body_off: '{"config": {"on": false}}'
  is_on_template: '{{ value_json.config.on }}'
  scan_interval: 1

In the logs however, there’s endless repetition of this:

ERROR (MainThread) [] Error while fetch data.
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/homeassistant/components/switch/", line 178, in get_device_state
    text = yield from req.text()
  File "/usr/lib/python3.6/site-packages/aiohttp/", line 829, in text
  File "/usr/lib/python3.6/site-packages/aiohttp/", line 798, in read
    self._content = await
  File "/usr/lib/python3.6/site-packages/aiohttp/", line 312, in read
    block = await self.readany()
  File "/usr/lib/python3.6/site-packages/aiohttp/", line 328, in readany
    await self._wait('readany')
  File "/usr/lib/python3.6/site-packages/aiohttp/", line 250, in _wait
    await waiter
  File "/usr/lib/python3.6/asyncio/", line 332, in __iter__
    yield self  # This tells Task to wait for completion.

Not sure if this really is from the Hue sensor switch, but since i don’t have any other Rest switches, is must be…

Anyone recognize this error, and know what to do ?