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

Does not work in HA core-2022.2.0b6 #35

Closed
ColinRobbins opened this issue Feb 2, 2022 · 0 comments · Fixed by #36
Closed

Does not work in HA core-2022.2.0b6 #35

ColinRobbins opened this issue Feb 2, 2022 · 0 comments · Fixed by #36
Labels
bug Something isn't working

Comments

@ColinRobbins
Copy link
Contributor

Hi,

This integration failes to load in HA core-2022.2.0b6.
This was previousl working in 2021.11.1
My log file is below.

Logger: homeassistant.components.media_player
Source: custom_components/media_player_template/media_player.py:298
Integration: Media Player (documentation, issues)
First occurred: 15:46:08 (1 occurrences)
Last logged: 15:46:08

Error while setting up media_player_template platform for media_player
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform
    await asyncio.shield(task)
  File "/home/homeassistant/.homeassistant/custom_components/media_player_template/media_player.py", line 157, in async_setup_platform
    async_add_entities(await _async_create_entities(hass, config))
  File "/home/homeassistant/.homeassistant/custom_components/media_player_template/media_player.py", line 205, in _async_create_entities
    MediaPlayerTemplate(
  File "/home/homeassistant/.homeassistant/custom_components/media_player_template/media_player.py", line 298, in __init__
    super().__init__(
TypeError: __init__() missing 1 required positional argument: 'hass'
@Sennevds Sennevds added the bug Something isn't working label Feb 2, 2022
Sennevds added a commit that referenced this issue Feb 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants