diff options
| author | diogo464 <[email protected]> | 2025-12-05 12:17:01 +0000 |
|---|---|---|
| committer | diogo464 <[email protected]> | 2025-12-05 12:17:01 +0000 |
| commit | 0c86da392af50c7588b087c3f72602e8368af65e (patch) | |
| tree | 894cd2f353298b83a56cde06eafd7b1e366aa6b3 /examples/button.rs | |
| parent | 1d2ee64d0ec917a2c2b66f8d58e1f37dd174a89d (diff) | |
reworked entity creation
Diffstat (limited to 'examples/button.rs')
| -rw-r--r-- | examples/button.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/button.rs b/examples/button.rs index cfef3e3..3ac1de8 100644 --- a/examples/button.rs +++ b/examples/button.rs | |||
| @@ -20,7 +20,7 @@ async fn main_task(spawner: Spawner) { | |||
| 20 | }, | 20 | }, |
| 21 | ); | 21 | ); |
| 22 | 22 | ||
| 23 | let button = device.create_button("button-sensor-id", "Button Name"); | 23 | let button = device.create_button("button-sensor-id", embassy_ha::ButtonConfig::default()); |
| 24 | 24 | ||
| 25 | spawner.must_spawn(button_task(button)); | 25 | spawner.must_spawn(button_task(button)); |
| 26 | 26 | ||
