Closed elParaguayo closed 3 years ago
Don't use _add_match_rule()
. It's private and undocumented. In the future I might add this method to the public interface and it will work like you expect. Add the match rule manually like this:
reply = await bus.call(
Message(destination='org.freedesktop.DBus',
path='/org/freedesktop/DBus',
member='AddMatch',
signature='s',
body=["sender=':23'"]))
This may be me misunderstanding the message handler but I'm still confused.
My code is as follows:
While this runs correctly and does give me the messages I want. When I first run it, I also get this output:
None of these properties match my rule so I'm not sure why I'm receiving it.
I can test for the message_type in the handler but I would have preferred the handler not to receive this message at all.
What have I missed?