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

Mystrom Light broken after last update to 2022.3.8 #69170

Closed
gilbert-grape opened this issue Apr 3, 2022 · 6 comments
Closed

Mystrom Light broken after last update to 2022.3.8 #69170

gilbert-grape opened this issue Apr 3, 2022 · 6 comments

Comments

@gilbert-grape
Copy link

The problem

Hi

I am getting the following error message:

Error while setting up mystrom platform for light
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform
    await asyncio.shield(task)
  File "/usr/src/homeassistant/homeassistant/components/mystrom/light.py", line 61, in async_setup_platform
    await bulb.get_state()
  File "/usr/local/lib/python3.9/site-packages/pymystrom/bulb.py", line 41, in get_state
    self._consumption = response[self._mac]["power"]
TypeError: 'method' object is not subscriptable

I did not changed anything. I just upgraded to the newest version of HA Core.

Version now: 2022.3.8
OS: Home Assistant OS 7.6
Supervisor: supervisor-2022.03.5
Hardware: Raspberry Pi 4 8GB RAM

Thanks for checking.
The god behind the integration of mystrom is, I think, https://github.com/fabaff . Mybe it is for him?
If you think this is not a core problem, then I am very sorry. From my side it is hard to understand where to open the issue.

Gilbert

What version of Home Assistant Core has the issue?

2022.3.8

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Supervised

Integration causing the issue

mystrom

Link to integration documentation on our website

https://github.com/home-assistant-ecosystem/python-mystrom

Diagnostics information

No response

Example YAML snippet

light:
  - platform: mystrom
    host: 192.168.1.120
    mac: 6001942C50AF

Anything in the logs that might be useful for us?

Error while setting up mystrom platform for light
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform
    await asyncio.shield(task)
  File "/usr/src/homeassistant/homeassistant/components/mystrom/light.py", line 61, in async_setup_platform
    await bulb.get_state()
  File "/usr/local/lib/python3.9/site-packages/pymystrom/bulb.py", line 41, in get_state
    self._consumption = response[self._mac]["power"]
TypeError: 'method' object is not subscriptable

Additional information

No response

@probot-home-assistant
Copy link

mystrom documentation
mystrom source
(message by IssueLinks)

@probot-home-assistant
Copy link

Hey there @fabaff, mind taking a look at this issue as it has been labeled with an integration (mystrom) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)

@fabaff
Copy link
Member

fabaff commented Apr 13, 2022

#69745 will help here.

@fabaff fabaff linked a pull request Apr 13, 2022 that will close this issue
22 tasks
@github-actions
Copy link

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.

@github-actions github-actions bot added the stale label Jul 12, 2022
@gilbert-grape
Copy link
Author

It works since some releases. You can close the issue. Thanks to all them, who helped to repair it.

@github-actions github-actions bot removed the stale label Jul 13, 2022
@github-actions
Copy link

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.

@github-actions github-actions bot added the stale label Oct 11, 2022
@issue-triage-workflows issue-triage-workflows bot closed this as not planned Won't fix, can't repro, duplicate, stale Jan 8, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Feb 7, 2023
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.

3 participants