Skip to content

Commit

Permalink
removes homething devicetype
Browse files Browse the repository at this point in the history
fixes librespot-org#1470

From the comments about "homething" support in spotify:
"Did they ever release their homething product? I assumed not and guess they removed all support for it. We could just remove this footgun."
  • Loading branch information
cz8s committed Feb 25, 2025
1 parent 09b4aa4 commit 0c6c77d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions core/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ pub enum DeviceType {
UnknownSpotify = 100,
CarThing = 101,
Observer = 102,
HomeThing = 103,
}

impl FromStr for DeviceType {
Expand All @@ -102,7 +101,6 @@ impl FromStr for DeviceType {
"smartwatch" => Ok(Smartwatch),
"chromebook" => Ok(Chromebook),
"carthing" => Ok(CarThing),
"homething" => Ok(HomeThing),
_ => Err(()),
}
}
Expand Down Expand Up @@ -130,7 +128,6 @@ impl From<&DeviceType> for &str {
UnknownSpotify => "UnknownSpotify",
CarThing => "CarThing",
Observer => "Observer",
HomeThing => "HomeThing",
}
}
}
Expand Down Expand Up @@ -169,7 +166,6 @@ impl From<DeviceType> for ProtoDeviceType {
DeviceType::UnknownSpotify => ProtoDeviceType::UNKNOWN_SPOTIFY,
DeviceType::CarThing => ProtoDeviceType::CAR_THING,
DeviceType::Observer => ProtoDeviceType::OBSERVER,
DeviceType::HomeThing => ProtoDeviceType::HOME_THING,
}
}
}
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1471,7 +1471,7 @@ fn get_setup() -> Setup {
speaker, tv, avr, stb, audiodongle, \
gameconsole, castaudio, castvideo, \
automobile, smartwatch, chromebook, \
carthing, homething",
carthing",
DeviceType::default().into(),
);

Expand Down

0 comments on commit 0c6c77d

Please sign in to comment.