chore(home-assistant): update comment about PyFromStrLiteral idea
This commit is contained in:
@@ -25,7 +25,7 @@ impl From<ExtractTypeError> 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 {
|
impl<'a, 'py> FromPyObject<'a, 'py> for Type {
|
||||||
type Error = ExtractTypeError;
|
type Error = ExtractTypeError;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user