blob: 2560fd4e1c16ea758700470c15ff21c73660c56c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
use crate::constants;
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum EntityCategory {
Config,
Diagnostic,
}
impl EntityCategory {
pub(crate) fn as_str(&self) -> &'static str {
match self {
EntityCategory::Config => constants::HA_ENTITY_CATEGORY_CONFIG,
EntityCategory::Diagnostic => constants::HA_ENTITY_CATEGORY_DIAGNOSTIC,
}
}
}
|