Skip to content

Commit

Permalink
feat: minor typo fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mgierada committed Jan 12, 2024
1 parent 14b5215 commit d625d93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/routes/office_routes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pub async fn office_on_handler(_token: Token) -> Json<serde_json::Value> {
}
// appliences need to be added manually
let humidifier = OfficeDevices::humidifier();
let payload = office_setup(&humidifier, "off");
let payload = office_setup(&humidifier, "on");
let result = govee_client.control_appliance(payload).await;
if let Err(err) = result {
panic!("Error occurred: {:?}", err);
Expand Down Expand Up @@ -59,7 +59,7 @@ pub async fn office_off_handler(_token: Token) -> Json<serde_json::Value> {
if let Err(err) = result {
panic!("Error occurred: {:?}", err);
}
Json(serde_json::json!({"device": "all", "status": "on"}))
Json(serde_json::json!({"device": "all", "status": "off"}))
}

#[get("/board/on")]
Expand Down

0 comments on commit d625d93

Please sign in to comment.