Unneeded mqtt client in huegroup
This commit is contained in:
parent
856bc3cc96
commit
47d509cec1
|
@ -2,7 +2,6 @@ use std::net::SocketAddr;
|
||||||
|
|
||||||
use anyhow::Result;
|
use anyhow::Result;
|
||||||
use async_trait::async_trait;
|
use async_trait::async_trait;
|
||||||
use automation_lib::mqtt::WrappedAsyncClient;
|
|
||||||
use automation_macro::LuaDeviceConfig;
|
use automation_macro::LuaDeviceConfig;
|
||||||
use google_home::errors::ErrorCode;
|
use google_home::errors::ErrorCode;
|
||||||
use google_home::traits::OnOff;
|
use google_home::traits::OnOff;
|
||||||
|
@ -18,8 +17,6 @@ pub struct Config {
|
||||||
pub login: String,
|
pub login: String,
|
||||||
pub group_id: isize,
|
pub group_id: isize,
|
||||||
pub scene_id: String,
|
pub scene_id: String,
|
||||||
#[device_config(from_lua)]
|
|
||||||
pub client: WrappedAsyncClient,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone)]
|
||||||
|
|
|
@ -233,7 +233,6 @@ local hallway_top_light = HueGroup.new({
|
||||||
login = hue_token,
|
login = hue_token,
|
||||||
group_id = 83,
|
group_id = 83,
|
||||||
scene_id = "QeufkFDICEHWeKJ7",
|
scene_id = "QeufkFDICEHWeKJ7",
|
||||||
client = mqtt_client,
|
|
||||||
})
|
})
|
||||||
automation.device_manager:add(HueSwitch.new({
|
automation.device_manager:add(HueSwitch.new({
|
||||||
name = "SwitchBottom",
|
name = "SwitchBottom",
|
||||||
|
@ -313,7 +312,6 @@ local hallway_bottom_lights = HueGroup.new({
|
||||||
login = hue_token,
|
login = hue_token,
|
||||||
group_id = 81,
|
group_id = 81,
|
||||||
scene_id = "3qWKxGVadXFFG4o",
|
scene_id = "3qWKxGVadXFFG4o",
|
||||||
client = mqtt_client,
|
|
||||||
})
|
})
|
||||||
automation.device_manager:add(hallway_bottom_lights)
|
automation.device_manager:add(hallway_bottom_lights)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user