aboutsummaryrefslogtreecommitdiff
path: root/src/entity_sensor.rs
diff options
context:
space:
mode:
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 {