Big refactor from using a seperate channel for all the different kind of events to a single event channel
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-04-14 01:06:08 +02:00
parent 72ab48df42
commit 88e9b8f409
11 changed files with 362 additions and 489 deletions

View File

@@ -17,6 +17,7 @@ use crate::{
error::{ConfigParseError, CreateDeviceError, MissingEnv},
hue_bridge::HueBridgeConfig,
light_sensor::LightSensorConfig,
presence::PresenceConfig,
};
#[derive(Debug, Deserialize)]
@@ -27,7 +28,7 @@ pub struct Config {
#[serde(default)]
pub fullfillment: FullfillmentConfig,
pub ntfy: Option<NtfyConfig>,
pub presence: MqttDeviceConfig,
pub presence: PresenceConfig,
pub light_sensor: LightSensorConfig,
pub hue_bridge: Option<HueBridgeConfig>,
pub debug_bridge: Option<DebugBridgeConfig>,