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

zigpy move from handle_message to packet_received #1660

Closed
pipiche38 opened this issue Oct 27, 2023 · 3 comments
Closed

zigpy move from handle_message to packet_received #1660

pipiche38 opened this issue Oct 27, 2023 · 3 comments

Comments

@pipiche38
Copy link
Collaborator

pipiche38 commented Oct 27, 2023

As described here, zigpy/zigpy#1273, zigpy radio libs deprecated handle_message and so plugin is not compatible with the zigpy releases above 59.0 (included)

the overloaded handle_message in

has to be replaced by packet_receive

https://github.com/zigpy/zigpy/blob/4570a0a47b6f2ad56f922f8cd5861bbfdda25915/zigpy/types/named.py#L563

@pipiche38
Copy link
Collaborator Author

pipiche38 commented Oct 27, 2023

try:
      device = self.get_device_with_address(packet.src)
except KeyError:
      LOGGER.warning("Unknown device %r", packet.src)
device.radio_details(lqi=packet.lqi, rssi=packet.rssi)
  sender=device,
  profile=packet.profile_id,
  cluster=packet.cluster_id,
  src_ep=packet.src_ep,
  dst_ep=packet.dst_ep,
  message=packet.data.serialize(),
  dst_addressing=packet.dst.addr_mode,

@pipiche38
Copy link
Collaborator Author

@pipiche38
Copy link
Collaborator Author

fix with #1662

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

No branches or pull requests

1 participant