()
| 131 | |
| 132 | |
| 133 | def create_esp32_auth_message() -> dict: |
| 134 | return { |
| 135 | "type": "auth", |
| 136 | "volume_control": int(os.getenv("ESP32_DEFAULT_VOLUME", "100")), |
| 137 | "pitch_factor": float(os.getenv("ESP32_DEFAULT_PITCH_FACTOR", "1.0")), |
| 138 | "is_ota": False, |
| 139 | "is_reset": False, |
| 140 | } |
| 141 | |
| 142 | |
| 143 | async def run_bot_session( |