feat: Migrate to rumqttc-next
This commit is contained in:
@@ -66,7 +66,10 @@ impl Device for WakeOnLAN {
|
||||
#[async_trait]
|
||||
impl OnMqtt for WakeOnLAN {
|
||||
async fn on_mqtt(&self, message: Publish) {
|
||||
if !rumqttc::matches(&message.topic, &self.config.mqtt.topic) {
|
||||
if !rumqttc::matches(
|
||||
str::from_utf8(&message.topic).expect("Topic should be valid"),
|
||||
&self.config.mqtt.topic,
|
||||
) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user