home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.61k stars 29.92k forks source link

Log error when using SET_SLEEP_MODE for Litter-Robot integration. #47514

Closed ShagoY closed 3 years ago

ShagoY commented 3 years ago

The problem

I have two automations that use the vacuum.send_command service that enables or disables the sleep mode on my device. The Litter-Robot receives the command but I get an error in my HA logs when it is triggered.

What is version of Home Assistant Core has the issue?

core-2021.3.2

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Litter-Robot

Link to integration documentation on our website

https://www.home-assistant.io/integrations/litterrobot

Example YAML snippet

service: vacuum.send_command
target:
  entity_id: vacuum.litter_robot_litter_box
data:
  command: set_sleep_mode
  params:
    enabled: true
    sleep_time: "22:30:00"

Anything in the logs that might be useful for us?

ERROR (MainThread) [homeassistant] Error doing job: Exception in callback async_track_point_in_utc_time.<locals>.run_action() at /usr/src/homeassistant/homeassistant/helpers/event.py:1181
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/asyncio/events.py", line 81, in _run
    self._context.run(self._callback, *self._args)
  File "/usr/src/homeassistant/homeassistant/helpers/event.py", line 1200, in run_action
    hass.async_run_hass_job(job, utc_point_in_time)
  File "/usr/src/homeassistant/homeassistant/core.py", line 438, in async_run_hass_job
    return self.async_add_hass_job(hassjob, *args)
  File "/usr/src/homeassistant/homeassistant/core.py", line 370, in async_add_hass_job
    task = self.loop.create_task(hassjob.target(*args))
TypeError: async_request_refresh() takes 1 positional argument but 2 were given
probot-home-assistant[bot] commented 3 years ago

litterrobot documentation litterrobot source (message by IssueLinks)

probot-home-assistant[bot] commented 3 years ago

Hey there @natekspencer, mind taking a look at this issue as its been labeled with an integration (litterrobot) you are listed as a codeowner for? Thanks! (message by CodeOwnersMention)

github-actions[bot] commented 3 years ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.