From 80326990137b8d068f0c090d517145421d2d8404 Mon Sep 17 00:00:00 2001 From: Jacob Date: Wed, 7 Jan 2026 02:11:11 -0500 Subject: [PATCH] chore(home-assistant): update comment about `PyFromStrLiteral` idea --- home-assistant/src/event/specific/state_changed.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home-assistant/src/event/specific/state_changed.rs b/home-assistant/src/event/specific/state_changed.rs index f694cfc..7b55f81 100644 --- a/home-assistant/src/event/specific/state_changed.rs +++ b/home-assistant/src/event/specific/state_changed.rs @@ -25,7 +25,7 @@ impl From for PyErr { } } -// TODO: replace with a derive(PyFromStrLiteral) / #[str = "state_changed"] once I learn how to make something like that and see about serde or strum integration or inspiration +// TODO: replace with a derive(PyFromStrLiteral) / #[literal = "state_changed"] once I learn how to make something like that and see about serde or strum integration or inspiration impl<'a, 'py> FromPyObject<'a, 'py> for Type { type Error = ExtractTypeError;