diff options
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/button.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/button.rs b/examples/button.rs index 4a2a228..ea8c4a9 100644 --- a/examples/button.rs +++ b/examples/button.rs | |||
| @@ -20,7 +20,11 @@ async fn main_task(spawner: Spawner) { | |||
| 20 | }, | 20 | }, |
| 21 | ); | 21 | ); |
| 22 | 22 | ||
| 23 | let button = embassy_ha::create_button(&device, "button-sensor-id", embassy_ha::ButtonConfig::default()); | 23 | let button = embassy_ha::create_button( |
| 24 | &device, | ||
| 25 | "button-sensor-id", | ||
| 26 | embassy_ha::ButtonConfig::default(), | ||
| 27 | ); | ||
| 24 | 28 | ||
| 25 | spawner.must_spawn(button_task(button)); | 29 | spawner.must_spawn(button_task(button)); |
| 26 | 30 | ||
