From 25f155487026a6ff39906db3ce92cd2052179140 Mon Sep 17 00:00:00 2001 From: Jacob Date: Sat, 15 Mar 2025 15:00:04 -0400 Subject: [PATCH] fix: allow numbers in object IDs --- src/home_assistant/object_id.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/home_assistant/object_id.rs b/src/home_assistant/object_id.rs index b734e02..454369a 100644 --- a/src/home_assistant/object_id.rs +++ b/src/home_assistant/object_id.rs @@ -7,7 +7,7 @@ use snafu::Snafu; pub struct ObjectId(Arc); #[derive(Debug, Clone, Snafu)] -#[snafu(display("expected a lowercase ASCII alphabetical character (i.e. a through z) or an underscore (i.e. _) but encountered {encountered}"))] +#[snafu(display("expected a lowercase ASCII alphabetical character (i.e. a through z) or a digit (i.e. 0 through 9) or an underscore (i.e. _) but encountered {encountered}"))] pub struct ObjectIdParsingError { encountered: char, }