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

telegram_bot does not start after upgrading to 2022.4.0 #69445

Closed
wtremmel opened this issue Apr 6, 2022 · 7 comments · Fixed by #69452
Closed

telegram_bot does not start after upgrading to 2022.4.0 #69445

wtremmel opened this issue Apr 6, 2022 · 7 comments · Fixed by #69452

Comments

@wtremmel
Copy link

wtremmel commented Apr 6, 2022

The problem

Telegram_bot does not start after latest upgrade

What version of Home Assistant Core has the issue?

core-2022.4.0

What was the last working version of Home Assistant Core?

core-2022.3.x

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_broadcast

Diagnostics information

No response

Example YAML snippet

telegram_bot:
  - platform: broadcast
    api_key: my key
    allowed_chat_ids:
      - 1
      - 1
      - -3

Anything in the logs that might be useful for us?

2022-04-06 17:21:23 ERROR (MainThread) [homeassistant.components.telegram_bot] Error setting up platform broadcast
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/telegram_bot/__init__.py", line 329, in async_setup
    receiver_service = await platform.async_setup_platform(hass, bot, p_config)
TypeError: async_setup_platform() takes 2 positional arguments but 3 were given
2022-04-06 17:21:23 ERROR (MainThread) [homeassistant.setup] Setup failed for telegram_bot: Integration failed to initialize.

Additional information

According to discard chat I am not the only one having this problem

@probot-home-assistant
Copy link

telegram_bot documentation
telegram_bot source
(message by IssueLinks)

@tungmeister
Copy link

seeing this myself also. Same error.

@balloob
Copy link
Member

balloob commented Apr 6, 2022

Looks like it got intrduced in #66433

CC @wicol

@balloob balloob mentioned this issue Apr 6, 2022
22 tasks
@tungmeister
Copy link

@balloob #69452 working as expected.

@balloob
Copy link
Member

balloob commented Apr 6, 2022

Thanks for confirming 👍

@SunnyM-ha
Copy link

SunnyM-ha commented Apr 6, 2022

I have the same issue, looking at the above its fixed so I guess we have to wait for 2022.4.1 to be able to use this fix?

@wicol
Copy link
Contributor

wicol commented Apr 6, 2022

Sorry guys, I never did try (or test) the broadcast platform. Clearly it broke in the refactor ☹️
It's good to see a test for it now so it won't happen again 👌
I guess a workaround would be to use one of the other platforms until the fix is out? webhook might not be for everyone but polling should work, right?

And thanks for the quick fix @balloob!

@github-actions github-actions bot locked and limited conversation to collaborators May 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants