@ -290,7 +290,7 @@ class PresenceHandler(BaseHandler):
)
for local_part, state in states.items():
if stat is None:
if state is None:
continue
res = {"presence": state["state"]}
if "status_msg" in state and state["status_msg"]: