diff --git a/src/staylong/services/home_plan.py b/src/staylong/services/home_plan.py index 0ba9790..4c2e90c 100644 --- a/src/staylong/services/home_plan.py +++ b/src/staylong/services/home_plan.py @@ -116,34 +116,42 @@ def _plan_task1_description(pack: AssessmentPreparationPack) -> str: if area == "bathroom": if "shower" in difficulty: return ( - "Use the official pathway when you are ready to discuss bathroom and shower safety support at home." + "Use the official pathway when you are ready to discuss bathroom and " + "shower safety support at home." ) return ( - "Use the official pathway when you are ready to discuss night-time bathroom safety support at home." + "Use the official pathway when you are ready to discuss night-time " + "bathroom safety support at home." ) if area == "entry": return ( - "Use the official pathway when you are ready to discuss front step and entry access support at home." + "Use the official pathway when you are ready to discuss front step and " + "entry access support at home." ) if area == "bedroom": return ( - "Use the official pathway when you are ready to discuss bedroom movement and safety support at home." + "Use the official pathway when you are ready to discuss bedroom movement " + "and safety support at home." ) if area == "kitchen": return ( - "Use the official pathway when you are ready to discuss kitchen safety and meal preparation support at home." + "Use the official pathway when you are ready to discuss kitchen safety " + "and meal preparation support at home." ) if "shower" in difficulty: return ( - "Use the official pathway when you are ready to discuss bathroom and shower safety support at home." + "Use the official pathway when you are ready to discuss bathroom and " + "shower safety support at home." ) if any(k in difficulty for k in ("step", "stair", "door", "entry")): return ( - "Use the official pathway when you are ready to discuss front step and entry access support at home." + "Use the official pathway when you are ready to discuss front step and " + "entry access support at home." ) if any(k in difficulty for k in ("bathroom", "toilet", "night")): return ( - "Use the official pathway when you are ready to discuss night-time bathroom safety support at home." + "Use the official pathway when you are ready to discuss night-time " + "bathroom safety support at home." ) return "Use the official pathway when you are ready to discuss support at home." @@ -157,7 +165,8 @@ def _plan_task3_description( tenure = answers.get("housing_tenure", "").lower() if any(k in tenure for k in ("rent", "tenant", "lease", "landlord")): return ( - "Confirm whether landlord or property manager permission is needed before any home changes." + "Confirm whether landlord or property manager permission is needed " + "before any home changes." ) if any(k in tenure for k in ("own", "owner", "mortgage", "freehold")): return ( @@ -209,4 +218,3 @@ def build_home_independence_plan( ), ) - diff --git a/src/staylong/services/taskmaster.py b/src/staylong/services/taskmaster.py index ed716d8..c79d8c2 100644 --- a/src/staylong/services/taskmaster.py +++ b/src/staylong/services/taskmaster.py @@ -440,10 +440,12 @@ def decide_action( subject=f"Assessment preparation — {summary_text}", body=( f"Hello,\n\n" - f"I am preparing for a My Aged Care assessment to discuss staying independent at home.\n\n" + f"I am preparing for a My Aged Care assessment to discuss " + f"staying independent at home.\n\n" f"What I noticed:\n{difficulty_text}\n\n" f"Topics to discuss:\n{topics_text}\n\n" - f"This draft was prepared by StayLong for your review. It has not been sent." + f"This draft was prepared by StayLong for your review. " + f"It has not been sent." ), ), )