Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning showed up in log #143

Closed
jrschat opened this issue Oct 3, 2024 · 0 comments · Fixed by #144
Closed

Warning showed up in log #143

jrschat opened this issue Oct 3, 2024 · 0 comments · Fixed by #144

Comments

@jrschat
Copy link

jrschat commented Oct 3, 2024

The problem

Warning in details showed up in log yesterday.

What version of Home Assistant Core are you running?

core-2024.10.0

What was the last working version of Home Assistant Core?

No response

Anything in the logs that might be useful?

Logger: homeassistant.util.loop
Source: util/loop.py:136
First occurred: October 2, 2024 at 16:30:11 (2 occurrences)
Last logged: October 2, 2024 at 16:30:11

Detected blocking call to open with args (PosixPath('/config/.vivintpy_cache_1.pickle'),) inside the event loop by custom integration 'vivint' at custom_components/vivint/hub.py, line 107: abs_cookie_jar.load(self.cache_file) (offender: /usr/local/lib/python3.12/site-packages/aiohttp/cookiejar.py, line 126: with file_path.open(mode="rb") as f:), please create a bug report at https://github.com/natekspencer/hacs-vivint/issues For developers, please see https://developers.home-assistant.io/docs/asyncio_blocking_operations/#open Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "/usr/src/homeassistant/homeassistant/__main__.py", line 223, in <module> sys.exit(main()) File "/usr/src/homeassistant/homeassistant/__main__.py", line 209, in main exit_code = runner.run(runtime_conf) File "/usr/src/homeassistant/homeassistant/runner.py", line 189, in run return loop.run_until_complete(setup_and_run_hass(runtime_config)) File "/usr/local/lib/python3.12/asyncio/base_events.py", line 674, in run_until_complete self.run_forever() File "/usr/local/lib/python3.12/asyncio/base_events.py", line 641, in run_forever self._run_once() File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1990, in _run_once handle._run() File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run self._context.run(self._callback, *self._args) File "/usr/src/homeassistant/homeassistant/setup.py", line 165, in async_setup_component result = await _async_setup_component(hass, domain, config) File "/usr/src/homeassistant/homeassistant/setup.py", line 461, in _async_setup_component await asyncio.gather( File "/usr/src/homeassistant/homeassistant/setup.py", line 463, in <genexpr> create_eager_task( File "/usr/src/homeassistant/homeassistant/util/async_.py", line 45, in create_eager_task return Task(coro, loop=loop, name=name, eager_start=True) File "/usr/src/homeassistant/homeassistant/config_entries.py", line 742, in async_setup_locked await self.async_setup(hass, integration=integration) File "/usr/src/homeassistant/homeassistant/config_entries.py", line 594, in async_setup result = await component.async_setup_entry(hass, self) File "/config/custom_components/vivint/__init__.py", line 54, in async_setup_entry await hub.login(load_devices=True, subscribe_for_realtime_updates=True) File "/config/custom_components/vivint/hub.py", line 107, in login abs_cookie_jar.load(self.cache_file)
Detected blocking call to open with args (PosixPath('/config/.vivintpy_cache_1.pickle'),) inside the event loop by custom integration 'vivint' at custom_components/vivint/hub.py, line 161: self.account.api._VivintSkyApi__client_session.cookie_jar.save(self.cache_file) (offender: /usr/local/lib/python3.12/site-packages/aiohttp/cookiejar.py, line 121: with file_path.open(mode="wb") as f:), please create a bug report at https://github.com/natekspencer/hacs-vivint/issues For developers, please see https://developers.home-assistant.io/docs/asyncio_blocking_operations/#open Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "/usr/src/homeassistant/homeassistant/__main__.py", line 223, in <module> sys.exit(main()) File "/usr/src/homeassistant/homeassistant/__main__.py", line 209, in main exit_code = runner.run(runtime_conf) File "/usr/src/homeassistant/homeassistant/runner.py", line 189, in run return loop.run_until_complete(setup_and_run_hass(runtime_config)) File "/usr/local/lib/python3.12/asyncio/base_events.py", line 674, in run_until_complete self.run_forever() File "/usr/local/lib/python3.12/asyncio/base_events.py", line 641, in run_forever self._run_once() File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1990, in _run_once handle._run() File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run self._context.run(self._callback, *self._args) File "/usr/src/homeassistant/homeassistant/config_entries.py", line 742, in async_setup_locked await self.async_setup(hass, integration=integration) File "/usr/src/homeassistant/homeassistant/config_entries.py", line 594, in async_setup result = await component.async_setup_entry(hass, self) File "/config/custom_components/vivint/__init__.py", line 54, in async_setup_entry await hub.login(load_devices=True, subscribe_for_realtime_updates=True) File "/config/custom_components/vivint/hub.py", line 124, in login return self.save_session() File "/config/custom_components/vivint/hub.py", line 161, in save_session self.account.api._VivintSkyApi__client_session.cookie_jar.save(self.cache_file)

Additional information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant