diff --git a/driver/kasa/src/connection.rs b/driver/kasa/src/connection.rs index d84841d..159d3fd 100644 --- a/driver/kasa/src/connection.rs +++ b/driver/kasa/src/connection.rs @@ -1,6 +1,6 @@ use crate::messages::{ - GetSysInfo, GetSysInfoResponse, LB130USSys, LightState, Off, On, SetLightLastOn, SetLightOff, - SetLightState, SetLightStateArgs, SetLightStateResponse, SetLightTo, SysInfo, + GetSysInfo, GetSysInfoResponse, LB130USSys, SetLightState, SetLightStateArgs, + SetLightStateResponse, SysInfo, }; use backon::{FibonacciBuilder, Retryable}; diff --git a/driver/kasa/src/impl_protocol.rs b/driver/kasa/src/impl_protocol.rs index 4977a98..e95cbaa 100644 --- a/driver/kasa/src/impl_protocol.rs +++ b/driver/kasa/src/impl_protocol.rs @@ -1,5 +1,3 @@ -use std::convert::Infallible; - use palette::{encoding::Srgb, Hsv, IntoColor}; use protocol::light::{GetState, SetState, TurnToColor, TurnToTemperature}; use snafu::{ResultExt, Snafu}; @@ -7,8 +5,8 @@ use snafu::{ResultExt, Snafu}; use crate::{ connection::{HandleError, LB130USHandle}, messages::{ - Angle, Hsb, LightState, Off, On, Percentage, SetLightHsv, SetLightKelvin, SetLightLastOn, - SetLightOff, SetLightStateArgs, SetLightTo, + LightState, Off, On, SetLightHsv, SetLightKelvin, SetLightLastOn, SetLightOff, + SetLightStateArgs, SetLightTo, }, }; diff --git a/home-assistant/src/event/specific/state_changed.rs b/home-assistant/src/event/specific/state_changed.rs index 88851fb..392d020 100644 --- a/home-assistant/src/event/specific/state_changed.rs +++ b/home-assistant/src/event/specific/state_changed.rs @@ -1,9 +1,5 @@ -use std::fmt::Display; -use std::str::FromStr; - use pyo3::FromPyObject; use python_utils::{FromPyFromStr, ToStrToPy}; -use snafu::Snafu; use string_literal::StringLiteral; use crate::{entity_id::EntityId, state_object::StateObject}; diff --git a/home-assistant/src/notify/service/mobile_app/mod.rs b/home-assistant/src/notify/service/mobile_app/mod.rs index 8c062d6..94dc753 100644 --- a/home-assistant/src/notify/service/mobile_app/mod.rs +++ b/home-assistant/src/notify/service/mobile_app/mod.rs @@ -1,7 +1,7 @@ -use std::{convert::Infallible, str::FromStr}; +use std::str::FromStr; use pyo3::{ - types::{PyDict, PyDictMethods, PyString}, + types::{PyDict, PyDictMethods}, Bound, IntoPyObject, PyErr, Python, }; use python_utils::{FromPyFromStr, IntoPyObjectViaDisplay, ToStrToPy}; diff --git a/home-assistant/src/unit_of_measurement/power.rs b/home-assistant/src/unit_of_measurement/power.rs index ef9de98..b6207b6 100644 --- a/home-assistant/src/unit_of_measurement/power.rs +++ b/home-assistant/src/unit_of_measurement/power.rs @@ -1,5 +1,3 @@ -use std::str::FromStr; - use python_utils::{FromPyFromStr, ToStrToPy}; use strum::EnumString; use uom::{