Reformatted code base using black.

This commit is contained in:
Goffi 2024-06-19 18:44:57 +02:00
commit 53fdaa9d09

View file

@ -70,14 +70,14 @@ class Watched(object):
# we check that the previous presence was unavailable (no notification else)
try:
old_show = self.host.memory.get_entity_datum(
client, entity, "presence").show
old_show = self.host.memory.get_entity_datum(client, entity, "presence").show
except (KeyError, exceptions.UnknownEntityError):
old_show = C.PRESENCE_UNAVAILABLE
if old_show == C.PRESENCE_UNAVAILABLE:
watched = self.host.memory.param_get_a(
NAME, CATEGORY, profile_key=client.profile)
NAME, CATEGORY, profile_key=client.profile
)
if entity in watched or entity.userhostJID() in watched:
self.host.action_new(
{