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

fix(nest): fixed local push not enabled #72

Merged
merged 1 commit into from
Dec 22, 2023
Merged

fix(nest): fixed local push not enabled #72

merged 1 commit into from
Dec 22, 2023

Conversation

luuuis
Copy link
Owner

@luuuis luuuis commented Dec 22, 2023

Removed stray device['macAddr'] reference that was inadvertently left behind when introducing new DeviceInfo class, which causes an error when setting up the integration.

Error while setting up wibeee platform for sensor
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 359, in _async_setup_platform
    await asyncio.shield(task)
  File "/config/custom_components/wibeee/sensor.py", line 247, in async_setup_entry
    remove_push_listener = await async_setup_local_push(hass, entry, device, sensors)
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/wibeee/sensor.py", line 195, in async_setup_local_push
    mac_address = device['macAddr']
                  ~~~~~~^^^^^^^^^^^
TypeError: tuple indices must be integers or slices, not str

fixed a bug introduced by new DeviceInfo usage
@luuuis luuuis merged commit bcb1ac9 into main Dec 22, 2023
4 checks passed
@luuuis luuuis deleted the fix-local-push branch December 22, 2023 18:26
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 this pull request may close these issues.

1 participant