Skip to content

Commit

Permalink
remove 800W from model name
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominik Andreas committed Nov 18, 2023
1 parent 5a8a5a3 commit d4e0540
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/mqtt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ pub struct Mqtt {
/// Provide utility functions to extract data from the struct.
impl HMSStateResponse {
fn get_model(&self) -> String {
// TODO: identify model from dtu_sn
"HMS-800W-T2".to_string()
// TODO: figure out a way to properly identify the model
format!("HMS-WiFi")
}

fn get_name(&self) -> String {
Expand Down Expand Up @@ -103,7 +103,7 @@ impl DeviceConfig {
model,
identifiers,
manufacturer: "Hoymiles".to_string(),
/// Rust compiler sets the CARGO_PKG_VERSION environment from the Cargo.toml .
// Rust compiler sets the CARGO_PKG_VERSION environment from the Cargo.toml .
sw_version: env!("CARGO_PKG_VERSION").to_string(),
}
}
Expand Down

0 comments on commit d4e0540

Please sign in to comment.