core
core copied to clipboard
Telegram bot warnings
The problem
Running the core-2024.2.0b0 beta version gives the following warning:
Logger: py.warnings
Source: components/telegram_bot/__init__.py:13
First occurred: 11:45:52 (1 occurrences)
Last logged: 11:45:52
/usr/local/lib/python3.12/site-packages/telegram/utils/request.py:49: UserWarning: python-telegram-bot is using upstream urllib3. This is allowed but not supported by python-telegram-bot maintainers. warnings.warn(
What version of Home Assistant Core has the issue?
core-2024.2.0b0
What was the last working version of Home Assistant Core?
core-2024.1.6
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Telegram bot
Link to integration documentation on our website
https://www.home-assistant.io/integrations/telegram_bot/
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response
Still occurring in 2024.2.0b2
Still present in 2024.2.0b3
There is no path forward on this one. The newer upstream libraries are not compatible with Home Assistant.
Home Assistant uses httpx
in a newer version than they requires in their latest version of the lib. Although they have bumped it... it hasn't been released yet.
Ah, ok. So it should eventually be resolved by an upstream update.
The integration is still working and the warning is not spamming the log.
Close the issue or leave it open until resolved?
I think it is fine to leave open 👍
after the 2024.2.0 Upgare: Configuration warnings Component error: telegram_bot - Exception importing homeassistant.components.telegram_bot Platform error 'notify' from integration 'telegram' - Exception importing homeassistant.components.telegram.notify
Logger: homeassistant.loader Source: loader.py:847 First occurred: 09:42:40 (4 occurrences) Last logged: 09:46:46
Unexpected exception importing platform homeassistant.components.telegram.notify Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/pkg_resources/init.py", line 2933, in get_entry_map ep_map = self._ep_map ^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/pkg_resources/init.py", line 2899, in getattr raise AttributeError(attr) AttributeError: _ep_map. Did you mean: '_dep_map'?
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/loader.py", line 847, in get_platform
cache[full_name] = self._import_platform(platform_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 864, in _import_platform
return importlib.import_module(f"{self.pkg_path}.{platform_name}")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/importlib/init.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "
HA 2024.2.1.
Logger: py.warnings
Source: components/telegram_bot/__init__.py:13
First occurred: 21:52:26 (1 occurrences)
Last logged: 21:52:26
/usr/local/lib/python3.12/site-packages/telegram/utils/request.py:49: UserWarning: python-telegram-bot is using upstream urllib3. This is allowed but not supported by python-telegram-bot maintainers. warnings.warn(
i'm seeing the exact same message. Following.
`Logger: py.warnings Source: components/telegram_bot/init.py:13 First occurred: 13:22:51 (1 occurrences) Last logged: 13:22:51
/usr/local/lib/python3.12/site-packages/telegram/utils/request.py:49: UserWarning: python-telegram-bot is using upstream urllib3. This is allowed but not supported by python-telegram-bot maintainers. warnings.warn(`
Same issue for me... following...
Same here
It will be solved by https://github.com/home-assistant/core/pull/110297
This didn't make it into 2024.3 Did it?
Because I'm still seeing this error.
HA 2024.3.0
Logger: py.warnings
Source: components/telegram_bot/__init__.py:13
First occurred: 5:34:30 PM (1 occurrences)
Last logged: 5:34:30 PM
/usr/local/lib/python3.12/site-packages/telegram/utils/request.py:49: UserWarning: python-telegram-bot is using upstream urllib3. This is allowed but not supported by python-telegram-bot maintainers. warnings.warn(
The fix will land with 2024.4.0, not 2024.3.x as stated in the PR.