aboutsummaryrefslogtreecommitdiff
path: root/src/entity_sensor.rs
diff options
context:
space:
mode:
authordiogo464 <[email protected]>2026-01-20 15:00:53 +0000
committerdiogo464 <[email protected]>2026-01-20 15:00:53 +0000
commit4402ce6478027d48435eb937087690ae41f152c1 (patch)
tree6e9a984a78ff67c6fb447ac928fdb1481732d74c /src/entity_sensor.rs
parentfde795c093c0392988cae4690b8ef85483d30162 (diff)
cargo fmt
Diffstat (limited to 'src/entity_sensor.rs')
-rw-r--r--src/entity_sensor.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/entity_sensor.rs b/src/entity_sensor.rs
index e221141..fd5e7f7 100644
--- a/src/entity_sensor.rs
+++ b/src/entity_sensor.rs
@@ -18,8 +18,7 @@ impl StateClass {
18 } 18 }
19} 19}
20 20
21#[derive(Debug, Clone, Copy, PartialEq, Eq)] 21#[derive(Debug, Clone, Copy, PartialEq, Eq, Default)]
22#[derive(Default)]
23pub enum SensorClass { 22pub enum SensorClass {
24 #[default] 23 #[default]
25 Generic, 24 Generic,
@@ -77,7 +76,6 @@ pub enum SensorClass {
77 Other(&'static str), 76 Other(&'static str),
78} 77}
79 78
80
81impl SensorClass { 79impl SensorClass {
82 pub fn as_str(&self) -> Option<&'static str> { 80 pub fn as_str(&self) -> Option<&'static str> {
83 match self { 81 match self {