Correct yaml bool syntax
This commit is contained in:
parent
0edd2a0685
commit
4b07365306
|
@ -83,8 +83,8 @@ impl PowerSocket {
|
|||
|
||||
fn get_string_state(&self) -> String {
|
||||
let s = match self.get_state() {
|
||||
PowerState::Off => String::from("OFF"),
|
||||
PowerState::On => String::from("ON"),
|
||||
PowerState::Off => String::from("off"),
|
||||
PowerState::On => String::from("on"),
|
||||
};
|
||||
s
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user