use std::collections::HashMap; use axum::{Json, extract::State}; use crate::{Device, PowerSocket, Room, Thermometer}; pub async fn debug(State(_server_state): State) -> Json { let mut map = HashMap::::with_capacity(16); map.insert("therm_0".into(), Thermometer::new(22.5).into()); map.insert("psock_0".into(), PowerSocket::new(12.1, false).into()); Room::new(map).into() }