pub enum Entity {
BinarySensor(BinarySensor),
}Expand description
Represents different types of entities supported by ESPHome.
This enum contains all entity types that can be registered with the server. Currently, only binary sensors are implemented, but this will expand to include other entity types like switches, lights, sensors, etc.
Variants§
BinarySensor(BinarySensor)
A binary sensor entity (on/off state)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Entity
impl RefUnwindSafe for Entity
impl Send for Entity
impl Sync for Entity
impl Unpin for Entity
impl UnwindSafe for Entity
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more