wirestudio 0.46.0__tar.gz → 0.48.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (433) hide show
  1. {wirestudio-0.46.0 → wirestudio-0.48.0}/LICENSES.md +4 -3
  2. {wirestudio-0.46.0/wirestudio.egg-info → wirestudio-0.48.0}/PKG-INFO +3 -3
  3. {wirestudio-0.46.0 → wirestudio-0.48.0}/README.md +2 -2
  4. {wirestudio-0.46.0 → wirestudio-0.48.0}/pyproject.toml +1 -0
  5. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_agent.py +43 -0
  6. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_agent_eval.py +18 -0
  7. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_api.py +2 -1
  8. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_board_check.py +9 -0
  9. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_designs_seed.py +12 -0
  10. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_firmware_gen.py +90 -0
  11. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_lorawan.py +16 -0
  12. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_lorawan_fragments.py +37 -1
  13. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_migrate.py +49 -0
  14. wirestudio-0.48.0/tests/test_promote_library.py +121 -0
  15. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_tbeam_lorawan_example.py +5 -5
  16. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_tools_add_bus.py +15 -0
  17. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_validate.py +56 -1
  18. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_wled.py +67 -1
  19. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_workbench.py +95 -3
  20. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_yaml_gen.py +53 -0
  21. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/__init__.py +1 -1
  22. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/agent/eval_tasks.yaml +2 -2
  23. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/agent/tools.py +42 -9
  24. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/api/app.py +8 -3
  25. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/api/schemas.py +4 -0
  26. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/api/workbench.py +44 -1
  27. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/designs/seed.py +23 -0
  28. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/examples/heltec-v4-gnss-tracker.json +2 -1
  29. wirestudio-0.48.0/wirestudio/generate/esphome_integrations.txt +720 -0
  30. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/generate/yaml_gen.py +49 -1
  31. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/__init__.py +53 -5
  32. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/board_check.py +6 -5
  33. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/boards/heltec-wifi-lora32-v4.yaml +15 -2
  34. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/boards/m5stack-atomu.yaml +17 -5
  35. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/adc.yaml +5 -0
  36. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/ads1115.yaml +25 -0
  37. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/ads1115_channel.yaml +26 -0
  38. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/battery_adc.yaml +10 -0
  39. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/bme680.yaml +9 -0
  40. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/bmp180.yaml +34 -0
  41. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/ct_clamp.yaml +43 -0
  42. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/gpio_input.yaml +15 -0
  43. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/hc-sr04.yaml +29 -0
  44. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/hlw8012.yaml +63 -0
  45. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/hx711.yaml +21 -0
  46. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/i2s_microphone.yaml +14 -0
  47. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/ld2410.yaml +10 -0
  48. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/mpu6050.yaml +11 -0
  49. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/mpu6886.yaml +78 -0
  50. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/pn532.yaml +55 -0
  51. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/potentiometer.yaml +5 -0
  52. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/pulse_counter.yaml +17 -0
  53. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/remote_receiver.yaml +47 -0
  54. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/rotary_encoder.yaml +42 -0
  55. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/rtttl.yaml +6 -0
  56. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/sgp4x.yaml +45 -0
  57. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/ssd1306.yaml +13 -0
  58. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/st7789.yaml +13 -0
  59. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/voltage_divider.yaml +12 -0
  60. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/wiegand.yaml +58 -0
  61. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/mcp/server.py +10 -4
  62. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/migrate.py +92 -41
  63. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/model.py +6 -0
  64. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/schema/design.schema.json +2 -1
  65. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/targets/lorawan/codec.py +7 -0
  66. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/targets/lorawan/firmware_gen.py +3 -2
  67. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/targets/wled.py +23 -9
  68. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/targets/wled_build.py +12 -5
  69. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/validate.py +55 -0
  70. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/workbench/client.py +66 -3
  71. {wirestudio-0.46.0 → wirestudio-0.48.0/wirestudio.egg-info}/PKG-INFO +3 -3
  72. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio.egg-info/SOURCES.txt +2 -0
  73. {wirestudio-0.46.0 → wirestudio-0.48.0}/LICENSE +0 -0
  74. {wirestudio-0.46.0 → wirestudio-0.48.0}/setup.cfg +0 -0
  75. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_active_design.py +0 -0
  76. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_agent_stream.py +0 -0
  77. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_api_auth.py +0 -0
  78. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_api_route.py +0 -0
  79. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_ascii_gen.py +0 -0
  80. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_build_backend.py +0 -0
  81. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_check_upgrade.py +0 -0
  82. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_chirpstack.py +0 -0
  83. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_circuitpython.py +0 -0
  84. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_codec.py +0 -0
  85. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_community.py +0 -0
  86. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_compatibility.py +0 -0
  87. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_compile.py +0 -0
  88. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_component_corpus.py +0 -0
  89. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_connectors.py +0 -0
  90. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_coverage_baseline.py +0 -0
  91. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_design_events.py +0 -0
  92. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_designs.py +0 -0
  93. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_display_intent.py +0 -0
  94. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_electrical.py +0 -0
  95. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_enclosure.py +0 -0
  96. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_enclosure_gate.py +0 -0
  97. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_enclosure_search.py +0 -0
  98. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_errors.py +0 -0
  99. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_esphome_dashboard.py +0 -0
  100. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_esphome_support.py +0 -0
  101. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_fleet.py +0 -0
  102. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_footprints.py +0 -0
  103. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_framework_baseline.py +0 -0
  104. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_hardware_gate.py +0 -0
  105. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_intent.py +0 -0
  106. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_inventory.py +0 -0
  107. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_jlcpcb.py +0 -0
  108. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_kicad.py +0 -0
  109. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_kicad_drc.py +0 -0
  110. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_kicad_erc.py +0 -0
  111. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_kicad_fab.py +0 -0
  112. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_kicad_import.py +0 -0
  113. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_kicad_pcb.py +0 -0
  114. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_kicad_render.py +0 -0
  115. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_kicad_route.py +0 -0
  116. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_kicad_sch.py +0 -0
  117. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_library_check.py +0 -0
  118. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_library_hbridge.py +0 -0
  119. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_library_rtttl.py +0 -0
  120. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_lorawan_api.py +0 -0
  121. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_lorawan_sugar_migration.py +0 -0
  122. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_mcp_auth.py +0 -0
  123. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_mcp_client.py +0 -0
  124. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_mcp_hardware.py +0 -0
  125. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_mcp_jobs.py +0 -0
  126. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_mcp_resources.py +0 -0
  127. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_mcp_server.py +0 -0
  128. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_meshtastic.py +0 -0
  129. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_micropython.py +0 -0
  130. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_micropython_registers.py +0 -0
  131. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_modules.py +0 -0
  132. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_pin_protocols.py +0 -0
  133. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_pin_solver.py +0 -0
  134. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_printwarden.py +0 -0
  135. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_python_blocks.py +0 -0
  136. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_recommend.py +0 -0
  137. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_register_code.py +0 -0
  138. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_rf_ook.py +0 -0
  139. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_schema.py +0 -0
  140. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_schema_doc.py +0 -0
  141. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_schematics_gate.py +0 -0
  142. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_security_cors.py +0 -0
  143. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_seed_onboard.py +0 -0
  144. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_serve.py +0 -0
  145. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_sqlite_store.py +0 -0
  146. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_sqlite_stores.py +0 -0
  147. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_strict.py +0 -0
  148. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_targets.py +0 -0
  149. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_tasmota.py +0 -0
  150. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_tools_add_component.py +0 -0
  151. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_tools_solve_pins.py +0 -0
  152. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_uart_frames.py +0 -0
  153. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_workbench_boot.py +0 -0
  154. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_workbench_images.py +0 -0
  155. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_workbench_provision.py +0 -0
  156. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_workbench_serial.py +0 -0
  157. {wirestudio-0.46.0 → wirestudio-0.48.0}/tests/test_ws2812_method.py +0 -0
  158. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/agent/__init__.py +0 -0
  159. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/agent/agent.py +0 -0
  160. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/agent/eval.py +0 -0
  161. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/agent/session.py +0 -0
  162. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/api/__init__.py +0 -0
  163. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/api/__main__.py +0 -0
  164. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/api/auth.py +0 -0
  165. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/api/circuitpython.py +0 -0
  166. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/api/community.py +0 -0
  167. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/api/design_input.py +0 -0
  168. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/api/meshtastic.py +0 -0
  169. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/api/micropython.py +0 -0
  170. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/api/serve.py +0 -0
  171. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/csp/__init__.py +0 -0
  172. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/csp/compatibility.py +0 -0
  173. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/csp/pin_solver.py +0 -0
  174. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/designs/__init__.py +0 -0
  175. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/designs/active.py +0 -0
  176. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/designs/events.py +0 -0
  177. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/designs/store.py +0 -0
  178. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/enclosure/__init__.py +0 -0
  179. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/enclosure/openscad.py +0 -0
  180. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/enclosure/search.py +0 -0
  181. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/enclosure/yapp/LICENSE +0 -0
  182. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/enclosure/yapp/YAPPgenerator_v3.scad +0 -0
  183. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/errors.py +0 -0
  184. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/esphome_dashboard/__init__.py +0 -0
  185. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/examples/__init__.py +0 -0
  186. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/examples/access-panel.json +0 -0
  187. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/examples/actuator-harness.json +0 -0
  188. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/examples/air-quality-station.json +0 -0
  189. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/examples/analog-node.json +0 -0
  190. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/examples/atom-echo.json +0 -0
  191. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/examples/atom-lite.json +0 -0
  192. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/examples/atom-matrix.json +0 -0
  193. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/examples/atoms3-lcd.json +0 -0
  194. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/examples/atoms3-lite.json +0 -0
  195. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/examples/atoms3-onboard.json +0 -0
  196. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/examples/atomu-onboard.json +0 -0
  197. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/examples/atomu.json +0 -0
  198. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/examples/attic-logger.json +0 -0
  199. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/examples/awning-control.json +0 -0
  200. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/examples/bench-io.json +0 -0
  201. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/examples/bl0906-mainmeter.json +0 -0
  202. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/examples/blind-stepper.json +0 -0
  203. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/examples/bluemotion.json +0 -0
  204. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/examples/bluesonoff.json +0 -0
  205. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/examples/button-toggles-light.json +0 -0
  206. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/examples/c3-supermini.json +0 -0
  207. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/examples/c6-supermini.json +0 -0
  208. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/examples/co2-display.json +0 -0
  209. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/examples/desk-climate.json +0 -0
  210. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/examples/desk-matrix.json +0 -0
  211. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/examples/distance-sensor.json +0 -0
  212. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/examples/encoder-drives-stepper.json +0 -0
  213. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/examples/energy-monitor.json +0 -0
  214. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/examples/esp32-audio.json +0 -0
  215. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/examples/esp32cam-wrover.json +0 -0
  216. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/examples/esp32cam.json +0 -0
  217. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/examples/flow-meter.json +0 -0
  218. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/examples/garage-motion.json +0 -0
  219. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/examples/grill-probe.json +0 -0
  220. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/examples/guarded-button-light.json +0 -0
  221. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/examples/keypad.json +0 -0
  222. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/examples/kitchen-scale.json +0 -0
  223. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/examples/led-display.json +0 -0
  224. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/examples/lorawan-battery-uplink.json +0 -0
  225. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/examples/motion-turns-on-light.json +0 -0
  226. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/examples/motor-position.json +0 -0
  227. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/examples/multi-temp.json +0 -0
  228. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/examples/nextion-thermostat.json +0 -0
  229. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/examples/oled-knob.json +0 -0
  230. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/examples/oled.json +0 -0
  231. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/examples/output-hub.json +0 -0
  232. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/examples/parking-distance.json +0 -0
  233. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/examples/presence-media-node.json +0 -0
  234. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/examples/presence-rf.json +0 -0
  235. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/examples/rc522.json +0 -0
  236. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/examples/room-climate.json +0 -0
  237. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/examples/rs485-energy.json +0 -0
  238. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/examples/s3-devkitc.json +0 -0
  239. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/examples/s3-supermini.json +0 -0
  240. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/examples/securitypanel.json +0 -0
  241. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/examples/smart-plug-v1.json +0 -0
  242. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/examples/smart-plug.json +0 -0
  243. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/examples/solder-fan.json +0 -0
  244. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/examples/spi-io-node.json +0 -0
  245. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/examples/subghz-rfid.json +0 -0
  246. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/examples/t-beam-lorawan.json +0 -0
  247. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/examples/t-beam.json +0 -0
  248. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/examples/temp-above-turns-on-fan.json +0 -0
  249. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/examples/temp-turns-on-fan.json +0 -0
  250. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/examples/tft-touch.json +0 -0
  251. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/examples/ttgo-lora32.json +0 -0
  252. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/examples/tuya-smart-plug.json +0 -0
  253. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/examples/usbc-led-strip.json +0 -0
  254. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/examples/vent-damper.json +0 -0
  255. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/examples/wasserpir.json +0 -0
  256. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/examples/weather-station.json +0 -0
  257. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/examples/wemosgps.json +0 -0
  258. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/examples/wled-sensor-strip.json +0 -0
  259. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/examples/xiao-grove-climate.json +0 -0
  260. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/fleet/__init__.py +0 -0
  261. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/fleet/client.py +0 -0
  262. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/generate/__init__.py +0 -0
  263. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/generate/__main__.py +0 -0
  264. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/generate/ascii_gen.py +0 -0
  265. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/generate/circuitpython_gen.py +0 -0
  266. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/generate/display_intent.py +0 -0
  267. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/generate/micropython_gen.py +0 -0
  268. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/intent.py +0 -0
  269. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/inventory/__init__.py +0 -0
  270. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/inventory/buy.py +0 -0
  271. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/inventory/check.py +0 -0
  272. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/inventory/csv_io.py +0 -0
  273. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/inventory/match.py +0 -0
  274. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/inventory/store.py +0 -0
  275. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/jlcpcb/__init__.py +0 -0
  276. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/jlcpcb/__main__.py +0 -0
  277. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/jlcpcb/check.py +0 -0
  278. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/jlcpcb/client.py +0 -0
  279. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/kicad/__init__.py +0 -0
  280. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/kicad/drc.py +0 -0
  281. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/kicad/erc.py +0 -0
  282. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/kicad/fab.py +0 -0
  283. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/kicad/generator.py +0 -0
  284. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/kicad/import.py +0 -0
  285. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/kicad/importer.py +0 -0
  286. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/kicad/netlist.py +0 -0
  287. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/kicad/pcb.py +0 -0
  288. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/kicad/pcbnew_bridge.py +0 -0
  289. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/kicad/render.py +0 -0
  290. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/kicad/route.py +0 -0
  291. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/kicad/schematic.py +0 -0
  292. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/kicad/symbol_parser.py +0 -0
  293. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/boards/esp01_1m.yaml +0 -0
  294. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/boards/esp32-c3-devkitm-1.yaml +0 -0
  295. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/boards/esp32-c3-supermini.yaml +0 -0
  296. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/boards/esp32-c6-supermini.yaml +0 -0
  297. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/boards/esp32-devkitc-v4.yaml +0 -0
  298. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/boards/esp32-s3-devkitc-1.yaml +0 -0
  299. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/boards/esp32-s3-supermini.yaml +0 -0
  300. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/boards/esp32-wrover-cam.yaml +0 -0
  301. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/boards/esp32cam-ai-thinker.yaml +0 -0
  302. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/boards/esp8285-1m.yaml +0 -0
  303. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/boards/heltec-wifi-lora32-v2.yaml +0 -0
  304. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/boards/heltec-wifi-lora32-v3.yaml +0 -0
  305. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/boards/m5stack-atom-echo.yaml +0 -0
  306. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/boards/m5stack-atom-matrix.yaml +0 -0
  307. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/boards/m5stack-atom.yaml +0 -0
  308. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/boards/m5stack-atoms3-lite.yaml +0 -0
  309. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/boards/m5stack-atoms3.yaml +0 -0
  310. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/boards/nodemcu-32s.yaml +0 -0
  311. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/boards/nodemcu-v2.yaml +0 -0
  312. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/boards/seeed-xiao-esp32c3.yaml +0 -0
  313. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/boards/ttgo-lora32-v1.yaml +0 -0
  314. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/boards/ttgo-lora32-v2.yaml +0 -0
  315. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/boards/ttgo-t-beam.yaml +0 -0
  316. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/boards/wemos-d1-mini.yaml +0 -0
  317. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/check.py +0 -0
  318. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/aht10.yaml +0 -0
  319. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/apa102.yaml +0 -0
  320. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/axp192.yaml +0 -0
  321. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/bh1750.yaml +0 -0
  322. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/bl0906.yaml +0 -0
  323. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/bme280.yaml +0 -0
  324. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/bmp280.yaml +0 -0
  325. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/cc1101.yaml +0 -0
  326. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/connector_1x02.yaml +0 -0
  327. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/connector_1x03.yaml +0 -0
  328. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/connector_1x04.yaml +0 -0
  329. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/connector_1x05.yaml +0 -0
  330. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/connector_1x06.yaml +0 -0
  331. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/connector_1x07.yaml +0 -0
  332. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/connector_1x08.yaml +0 -0
  333. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/connector_2x05_idc.yaml +0 -0
  334. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/cse7766.yaml +0 -0
  335. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/dht.yaml +0 -0
  336. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/ds18b20.yaml +0 -0
  337. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/esp32_camera.yaml +0 -0
  338. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/esp32_rmt_led_strip.yaml +0 -0
  339. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/gpio_output.yaml +0 -0
  340. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/grove-aht20.yaml +0 -0
  341. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/hbridge.yaml +0 -0
  342. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/hbridge_mosfet.yaml +0 -0
  343. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/hc-sr501.yaml +0 -0
  344. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/htu21d.yaml +0 -0
  345. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/ili9xxx.yaml +0 -0
  346. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/ina219.yaml +0 -0
  347. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/lcd_pcf8574.yaml +0 -0
  348. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/ld2420.yaml +0 -0
  349. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/led_indicator.yaml +0 -0
  350. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/level_shifter.yaml +0 -0
  351. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/max31855.yaml +0 -0
  352. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/max7219.yaml +0 -0
  353. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/max98357a.yaml +0 -0
  354. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/mcp23008.yaml +0 -0
  355. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/mcp23017.yaml +0 -0
  356. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/mcp23s17.yaml +0 -0
  357. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/mcp3008.yaml +0 -0
  358. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/mcp3008_channel.yaml +0 -0
  359. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/mhz19.yaml +0 -0
  360. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/modbus.yaml +0 -0
  361. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/mosfet_low_side_driver.yaml +0 -0
  362. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/nextion.yaml +0 -0
  363. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/npn_low_side_driver.yaml +0 -0
  364. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/pca9685.yaml +0 -0
  365. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/pcf8574.yaml +0 -0
  366. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/pmsx003.yaml +0 -0
  367. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/pwm_fan.yaml +0 -0
  368. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/pzemac.yaml +0 -0
  369. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/rc522.yaml +0 -0
  370. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/rcwl-0516.yaml +0 -0
  371. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/rdm6300.yaml +0 -0
  372. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/remote_transmitter.yaml +0 -0
  373. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/rf_bridge.yaml +0 -0
  374. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/scd4x.yaml +0 -0
  375. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/sdm_meter.yaml +0 -0
  376. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/servo.yaml +0 -0
  377. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/sht3xd.yaml +0 -0
  378. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/sht4x.yaml +0 -0
  379. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/sn74hc595.yaml +0 -0
  380. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/sx127x.yaml +0 -0
  381. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/tm1637.yaml +0 -0
  382. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/tm1638.yaml +0 -0
  383. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/tsl2561.yaml +0 -0
  384. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/tuya.yaml +0 -0
  385. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/tuya_sensor.yaml +0 -0
  386. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/tuya_switch.yaml +0 -0
  387. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/uart_gps.yaml +0 -0
  388. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/uln2003.yaml +0 -0
  389. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/usb_c_power_in.yaml +0 -0
  390. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/veml7700.yaml +0 -0
  391. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/vl53l0x.yaml +0 -0
  392. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/ws2812b.yaml +0 -0
  393. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/components/xpt2046.yaml +0 -0
  394. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/electrical.py +0 -0
  395. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/modules/env-display.yaml +0 -0
  396. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/modules/fan-controller.yaml +0 -0
  397. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/modules/motion-light.yaml +0 -0
  398. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/modules/oled-knob-13.yaml +0 -0
  399. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/library/modules/relay-4ch.yaml +0 -0
  400. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/mcp/__init__.py +0 -0
  401. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/mcp/auth.py +0 -0
  402. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/mcp/hardware.py +0 -0
  403. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/mcp/jobs.py +0 -0
  404. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/printwarden/__init__.py +0 -0
  405. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/printwarden/client.py +0 -0
  406. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/recommend/__init__.py +0 -0
  407. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/recommend/recommender.py +0 -0
  408. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/schema/__init__.py +0 -0
  409. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/seed.py +0 -0
  410. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/sqlite_store.py +0 -0
  411. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/targets/__init__.py +0 -0
  412. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/targets/base.py +0 -0
  413. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/targets/build_backend.py +0 -0
  414. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/targets/esphome.py +0 -0
  415. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/targets/lorawan/__init__.py +0 -0
  416. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/targets/lorawan/__main__.py +0 -0
  417. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/targets/lorawan/api.py +0 -0
  418. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/targets/lorawan/build_local.py +0 -0
  419. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/targets/lorawan/chirpstack.py +0 -0
  420. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/targets/lorawan/compile.py +0 -0
  421. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/targets/lorawan/templates/main.cpp.j2 +0 -0
  422. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/targets/lorawan/templates/platformio.ini.j2 +0 -0
  423. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/targets/lorawan/workbench_provision.py +0 -0
  424. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/targets/tasmota.py +0 -0
  425. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/workbench/__init__.py +0 -0
  426. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/workbench/boot.py +0 -0
  427. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/workbench/gate.py +0 -0
  428. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/workbench/images.py +0 -0
  429. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio/workbench/serial.py +0 -0
  430. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio.egg-info/dependency_links.txt +0 -0
  431. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio.egg-info/entry_points.txt +0 -0
  432. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio.egg-info/requires.txt +0 -0
  433. {wirestudio-0.46.0 → wirestudio-0.48.0}/wirestudio.egg-info/top_level.txt +0 -0
@@ -33,15 +33,16 @@ them when the user (or a CI gate) builds. None is vendored.
33
33
  | the LoRaWAN target (`templates/platformio.ini.j2`) | [RadioLib](https://github.com/jgromes/RadioLib) | MIT |
34
34
  | the LoRaWAN target | [LoRaWAN_ESP32](https://github.com/ropg/LoRaWAN_ESP32) | MIT |
35
35
  | `lorawan:` blocks on `axp192`, `dht`, `ssd1306`, `uart_gps` | [XPowersLib](https://github.com/lewisxhe/XPowersLib) (MIT), [Adafruit DHT sensor library](https://github.com/adafruit/DHT-sensor-library) (MIT), [Adafruit SSD1306](https://github.com/adafruit/Adafruit_SSD1306) (BSD-3-Clause), [TinyGPSPlus](https://github.com/mikalhart/TinyGPSPlus) (LGPL-2.1-or-later) | as listed |
36
- | `wled:` usermod blocks on `bme280`, `bmp280`, `sht3xd`, `ds18b20`, `dht` | [BME280](https://github.com/finitespace/BME280) (GPL-3.0), [SHT85](https://github.com/RobTillaart/SHT85) (MIT), [OneWire](https://github.com/PaulStoffregen/OneWire) (MIT-style notice in the source), [DHT_nonblocking](https://github.com/alwynallan/DHT_nonblocking) (GPL-3.0) | as listed |
36
+ | `wled:` usermod blocks on `bme280`, `bmp280`, `sht3xd`, `ds18b20`, `dht`, `vl53l0x`, `i2s_microphone`, `ld2410`, `ssd1306`, `st7789`, `mpu6050`, `bme680` | [BME280](https://github.com/finitespace/BME280) (GPL-3.0), [SHT85](https://github.com/RobTillaart/SHT85) (MIT), [OneWire](https://github.com/PaulStoffregen/OneWire) (MIT-style notice in the source), [DHT_nonblocking](https://github.com/alwynallan/DHT_nonblocking) (GPL-3.0), [VL53L0X](https://github.com/pololu/vl53l0x-arduino) (MIT), [arduinoFFT](https://github.com/kosme/arduinoFFT) (GPL-3.0), [ld2410](https://github.com/ncmreynolds/ld2410) (LGPL-2.1), [U8g2](https://github.com/olikraus/u8g2) (BSD-2-Clause), [TFT_eSPI](https://github.com/Bodmer/TFT_eSPI) (FreeBSD and MIT, per its licence file), [MPU6050](https://github.com/ElectronicCats/mpu6050) (MIT), [Bolder Flight Systems Eigen](https://github.com/bolderflight/eigen) (MIT, wrapping Eigen under MPL-2.0), [BSEC Software Library](https://github.com/boschsensortec/BSEC-Arduino-library) (Bosch's own licence: binary only, for use with Bosch sensors) | as listed |
37
37
  | `circuitpython:` blocks, copied into `CIRCUITPY/lib` | the `adafruit_*` and `neopixel` libraries of the [Adafruit CircuitPython Bundle](https://github.com/adafruit/Adafruit_CircuitPython_Bundle) | MIT |
38
38
  | `micropython:` blocks, installed by `mip` | [micropython-lib](https://github.com/micropython/micropython-lib) `ssd1306`, `logging`, `lora-sx127x` and `lora-sync` (MIT); [BME280](https://github.com/robert-hh/BME280), [BME680-Micropython](https://github.com/robert-hh/BME680-Micropython), [micropython_ahtx0](https://github.com/targetblank/micropython_ahtx0), [micropython-bmp280](https://github.com/dafvid/micropython-bmp280), [pyb_ina219](https://github.com/chrisb2/pyb_ina219), [micropython-mcp23008](https://github.com/mcauser/micropython-mcp23008), [micropython-mcp23017](https://github.com/mcauser/micropython-mcp23017), [micropython-mpu9x50](https://github.com/micropython-IMU/micropython-mpu9x50), [micropython-adafruit-pca9685](https://github.com/adafruit/micropython-adafruit-pca9685), [MicroPython_SCD4X](https://github.com/peter-l5/MicroPython_SCD4X), [micropython-sht31](https://github.com/kfricke/micropython-sht31), [MicroPython_SHT4X](https://github.com/jposada202020/MicroPython_SHT4X), [micropython-adafruit-tsl2561](https://github.com/adafruit/micropython-adafruit-tsl2561), [veml7700](https://github.com/palouf34/veml7700), [micropython-max7219](https://github.com/mcauser/micropython-max7219), [micropython-ili9341](https://github.com/rdagger/micropython-ili9341), [st7789py_mpy](https://github.com/russhughes/st7789py_mpy), [ads1x15](https://github.com/robert-hh/ads1x15), [hx711](https://github.com/robert-hh/hx711), [micropython_ir](https://github.com/peterhinch/micropython_ir), [upy-rtttl](https://github.com/dhylands/upy-rtttl) (MIT, some by the notice in the source); [vl53l0x](https://github.com/kevinmcaleer/vl53l0x) (BSD-3-Clause) | as listed |
39
39
  | the ESPHome generator, for the external-component LoRaWAN path | [lorawan-for-esphome](https://github.com/moellere/lorawan-for-esphome), pinned by commit | MIT |
40
40
  | the `cc1101` component's notes | the `radiolib_cc1101` ESPHome fork, which the user adds as an `external_components` entry; the generator does not emit it | per that fork |
41
41
 
42
42
  A firmware the user builds from these is the user's: its licence
43
- follows from the libraries it links, and a WLED build with the BME280 or
44
- DHT usermod links GPL-3.0 code.
43
+ follows from the libraries it links, and a WLED build with the BME280,
44
+ DHT or audioreactive usermod links GPL-3.0 code; one with the BME680
45
+ links Bosch's binary BSEC library under its own terms.
45
46
 
46
47
  ## Compiled into the web bundle
47
48
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: wirestudio
3
- Version: 0.46.0
3
+ Version: 0.48.0
4
4
  Summary: Agent-driven IoT device design tool that produces ESPHome YAML.
5
5
  Author: wirestudio contributors
6
6
  License: MIT
@@ -125,7 +125,7 @@ Detailed docs live in [`docs/`](docs/):
125
125
 
126
126
  ## Status
127
127
 
128
- `v0.40.0` — on PyPI (`pip install wirestudio`). The studio has wide
128
+ `v0.46.0` — on PyPI (`pip install wirestudio`). The studio has wide
129
129
  surface area (YAML, schematic, PCB + fab outputs, enclosure,
130
130
  subcircuits with electrical rules, inventory matching, component
131
131
  authoring, agent, MCP server, two ESPHome build paths, remote
@@ -165,7 +165,7 @@ Tiers, in priority order:
165
165
  | **Works (lighter checks)** | CircuitPython flashing | proxy the official release image (`/circuitpython/firmware`) for ESP32/S3/C3/C6 boards, flash via the unified dialog, serve a generated starter `code.py` (`/circuitpython/code`) | endpoint tests with mocked upstream; every board-id mapping verified against downloads.circuitpython.org; generated starters parse as valid Python; no live-flash gate |
166
166
  | **Verified** | MCP server | 53 tools over the Model Context Protocol: 31 design / library / inventory / fab, plus 22 that reach hardware — workbench flash and boot verification, LoRaWAN compile / provision / activation, fleet and dashboard push + build status, and job polling for the long ones | the `mcp` package's own client connects to the mounted server over Streamable HTTP with the bearer token, lists the tools, drives a design from `create_design` to `render` and reads a resource, every PR (`tests/test_mcp_client.py`); tool / auth / resource tests in `tests/test_mcp_*.py`; the hardware tools drive the real clients against wire-level fakes, and were exercised against a live bench, ChirpStack and fleet during bring-up |
167
167
  | **Experimental** | Thingiverse search relay | rank community models for a board | smoke-tested; depends on a third-party search API that ranks unevenly |
168
- | **Verified** | Agent (Claude tool-using) | natural-language design driving | scored nightly against the 28-task list in `wirestudio/agent/eval_tasks.yaml`: the design it hands back passes `esphome config`, carries the asked-for change, and the turn stayed within its tool-call budget ([gate](.github/workflows/agent-eval.yml)); every task's reference solution passes the same scorer on every PR (`tests/test_agent_eval.py`). The nightly run drives the studio through Claude Code over MCP with the `CLAUDE_CODE_OAUTH_TOKEN` secret (a subscription); the embedded agent is scored too when `ANTHROPIC_API_KEY` is set. Each driver's first scored run sets its gate |
168
+ | **Verified** | Agent (Claude tool-using) | natural-language design driving | scored nightly against the 28-task list in `wirestudio/agent/eval_tasks.yaml`: the design it hands back passes `esphome config`, carries the asked-for change, and the turn stayed within its tool-call budget ([gate](.github/workflows/agent-eval.yml)); every task's reference solution passes the same scorer on every PR (`tests/test_agent_eval.py`). The nightly run drives the studio through Claude Code over MCP with the `CLAUDE_CODE_OAUTH_TOKEN` secret (a subscription); the embedded agent is scored too when `ANTHROPIC_API_KEY` is set. Both gates are 25 of 28 (`gate.min_pass`, `gate.claude_code_min_pass`), one below the lower of two runs on one commit |
169
169
  | **Verified** | PCB autorouting | Freerouting roundtrip — board → Specctra DSN → routed → SES import, GND pour filled; via cost and keepout rectangles as parameters; KiCad's DRC of the routed board reported back; SSE route endpoint, `route_pcb` MCP/agent tool, web-UI Route button, `?route=true` fab exports, `-pcb` image variant | representative examples route with zero unconnected items, a filled pour and a clean routed DRC; a high via cost must remove vias and a keepout must clear the track under it ([gate](.github/workflows/pcb-route.yml)) |
170
170
 
171
171
  The **Verified** tier is the bar the project is asking to be judged
@@ -91,7 +91,7 @@ Detailed docs live in [`docs/`](docs/):
91
91
 
92
92
  ## Status
93
93
 
94
- `v0.40.0` — on PyPI (`pip install wirestudio`). The studio has wide
94
+ `v0.46.0` — on PyPI (`pip install wirestudio`). The studio has wide
95
95
  surface area (YAML, schematic, PCB + fab outputs, enclosure,
96
96
  subcircuits with electrical rules, inventory matching, component
97
97
  authoring, agent, MCP server, two ESPHome build paths, remote
@@ -131,7 +131,7 @@ Tiers, in priority order:
131
131
  | **Works (lighter checks)** | CircuitPython flashing | proxy the official release image (`/circuitpython/firmware`) for ESP32/S3/C3/C6 boards, flash via the unified dialog, serve a generated starter `code.py` (`/circuitpython/code`) | endpoint tests with mocked upstream; every board-id mapping verified against downloads.circuitpython.org; generated starters parse as valid Python; no live-flash gate |
132
132
  | **Verified** | MCP server | 53 tools over the Model Context Protocol: 31 design / library / inventory / fab, plus 22 that reach hardware — workbench flash and boot verification, LoRaWAN compile / provision / activation, fleet and dashboard push + build status, and job polling for the long ones | the `mcp` package's own client connects to the mounted server over Streamable HTTP with the bearer token, lists the tools, drives a design from `create_design` to `render` and reads a resource, every PR (`tests/test_mcp_client.py`); tool / auth / resource tests in `tests/test_mcp_*.py`; the hardware tools drive the real clients against wire-level fakes, and were exercised against a live bench, ChirpStack and fleet during bring-up |
133
133
  | **Experimental** | Thingiverse search relay | rank community models for a board | smoke-tested; depends on a third-party search API that ranks unevenly |
134
- | **Verified** | Agent (Claude tool-using) | natural-language design driving | scored nightly against the 28-task list in `wirestudio/agent/eval_tasks.yaml`: the design it hands back passes `esphome config`, carries the asked-for change, and the turn stayed within its tool-call budget ([gate](.github/workflows/agent-eval.yml)); every task's reference solution passes the same scorer on every PR (`tests/test_agent_eval.py`). The nightly run drives the studio through Claude Code over MCP with the `CLAUDE_CODE_OAUTH_TOKEN` secret (a subscription); the embedded agent is scored too when `ANTHROPIC_API_KEY` is set. Each driver's first scored run sets its gate |
134
+ | **Verified** | Agent (Claude tool-using) | natural-language design driving | scored nightly against the 28-task list in `wirestudio/agent/eval_tasks.yaml`: the design it hands back passes `esphome config`, carries the asked-for change, and the turn stayed within its tool-call budget ([gate](.github/workflows/agent-eval.yml)); every task's reference solution passes the same scorer on every PR (`tests/test_agent_eval.py`). The nightly run drives the studio through Claude Code over MCP with the `CLAUDE_CODE_OAUTH_TOKEN` secret (a subscription); the embedded agent is scored too when `ANTHROPIC_API_KEY` is set. Both gates are 25 of 28 (`gate.min_pass`, `gate.claude_code_min_pass`), one below the lower of two runs on one commit |
135
135
  | **Verified** | PCB autorouting | Freerouting roundtrip — board → Specctra DSN → routed → SES import, GND pour filled; via cost and keepout rectangles as parameters; KiCad's DRC of the routed board reported back; SSE route endpoint, `route_pcb` MCP/agent tool, web-UI Route button, `?route=true` fab exports, `-pcb` image variant | representative examples route with zero unconnected items, a filled pour and a clean routed DRC; a high via cost must remove vias and a keepout must clear the track under it ([gate](.github/workflows/pcb-route.yml)) |
136
136
 
137
137
  The **Verified** tier is the bar the project is asking to be judged
@@ -72,6 +72,7 @@ include = ["wirestudio*"]
72
72
  # tries to read components/ + boards/.
73
73
  "wirestudio.library" = ["components/*.yaml", "boards/*.yaml", "modules/*.yaml"]
74
74
  "wirestudio.agent" = ["*.yaml"]
75
+ "wirestudio.generate" = ["esphome_integrations.txt"]
75
76
  "wirestudio.schema" = ["*.json"]
76
77
  "wirestudio.examples" = ["*.json"]
77
78
  "wirestudio.targets.lorawan" = ["templates/*.j2"]
@@ -75,6 +75,33 @@ def test_set_board_drops_a_flash_size_measured_on_the_old_board(lib, garage_moti
75
75
  assert "flash_size_mb" not in garage_motion_design["board"]
76
76
 
77
77
 
78
+ def test_set_board_takes_a_revision_and_drops_it_with_the_board(lib, garage_motion_design):
79
+ out, is_error = execute_tool(
80
+ "set_board", {"library_id": "heltec-wifi-lora32-v4", "revision": "4.3"}, garage_motion_design, lib,
81
+ )
82
+ assert is_error is False
83
+ assert json.loads(out)["board"]["revision"] == "4.3"
84
+ assert garage_motion_design["board"]["revision"] == "4.3"
85
+ execute_tool("set_board", {"library_id": "wemos-d1-mini"}, garage_motion_design, lib)
86
+ assert "revision" not in garage_motion_design["board"]
87
+
88
+
89
+ def test_set_board_unlisted_revision_returns_error(lib, garage_motion_design):
90
+ out, is_error = execute_tool(
91
+ "set_board", {"library_id": "heltec-wifi-lora32-v4", "revision": "4.9"}, garage_motion_design, lib,
92
+ )
93
+ assert is_error is True
94
+ assert "4.2, 4.3" in json.loads(out)["error"]
95
+ assert garage_motion_design["board"]["library_id"] != "heltec-wifi-lora32-v4"
96
+
97
+
98
+ def test_list_boards_shows_revisions(lib, garage_motion_design):
99
+ out, _ = execute_tool("list_boards", {}, garage_motion_design, lib)
100
+ by_id = {b["library_id"]: b for b in json.loads(out)["boards"]}
101
+ assert by_id["heltec-wifi-lora32-v4"]["revisions"] == ["4.2", "4.3"]
102
+ assert by_id["esp32-devkitc-v4"]["revisions"] == []
103
+
104
+
78
105
  def test_set_board_unknown_returns_error(lib, garage_motion_design):
79
106
  out, is_error = execute_tool(
80
107
  "set_board", {"library_id": "no-such-board"}, garage_motion_design, lib,
@@ -506,3 +533,19 @@ def test_search_components_puts_an_alias_above_a_use_case(lib):
506
533
  body = json.loads(execute_tool("search_components", {"query": alias}, {}, lib)[0])
507
534
  assert body["matches"][0]["score"] >= 90
508
535
  assert alias_owner.id in {m["library_id"] for m in body["matches"] if m["score"] >= 90}
536
+
537
+
538
+ def test_add_component_hint_esphome_refuses_is_suffixed_with_a_note(lib, garage_motion_design):
539
+ out, _ = execute_tool(
540
+ "add_component", {"library_id": "bh1750", "instance_id_hint": "bh1750"}, garage_motion_design, lib,
541
+ )
542
+ body = json.loads(out)
543
+ assert body["instance_id"] == "bh1750_1"
544
+ assert body["note"].startswith("instance_id_hint 'bh1750' names an ESPHome integration")
545
+ out, _ = execute_tool(
546
+ "add_component", {"library_id": "bh1750", "instance_id_hint": "bh1750_1"}, garage_motion_design, lib,
547
+ )
548
+ body = json.loads(out)
549
+ assert body["instance_id"] == "bh1750_2" and "is already in use" in body["note"]
550
+ out, _ = execute_tool("add_component", {"library_id": "bh1750", "instance_id_hint": "lux"}, garage_motion_design, lib)
551
+ assert "note" not in json.loads(out)
@@ -345,3 +345,21 @@ def test_a_replayed_call_must_fit_the_tool_schema(library):
345
345
  ev.apply_calls(design, [("add_bus", {"id": "w", "type": "1wire", "pin": "D5", "bogus": 1})], library)
346
346
  with pytest.raises(RuntimeError, match="not an agent tool"):
347
347
  ev.apply_calls(design, [("create_design", {})], library)
348
+
349
+
350
+ def test_first_i2c_part_survives_the_library_id_as_hint(library, tmp_path):
351
+ """The hint a model reaches for first, the library id, names the
352
+ integration the part loads; the studio suffixes it instead of handing
353
+ ESPHome an id it refuses (#410)."""
354
+ task = BY_ID["first-i2c-part"]
355
+
356
+ def hinting(t, design):
357
+ final = copy.deepcopy(design)
358
+ log = ev.apply_calls(final, [("add_component", {"library_id": "bh1750", "instance_id_hint": "bh1750"}),
359
+ ("solve_pins", {})], library)
360
+ return final, log, {}, ""
361
+
362
+ [r] = ev.run_tasks([task], library, hinting, esphome=esphome_available(), workdir=tmp_path,
363
+ log=lambda s: None)
364
+ assert r.passed, r.reasons
365
+ assert r.tools == ["add_component", "solve_pins"]
@@ -309,10 +309,11 @@ def test_list_examples(client):
309
309
  assert r.status_code == 200
310
310
  examples = r.json()
311
311
  ids = {e["id"] for e in examples}
312
- assert {"garage-motion-v1", "awning-control", "ttgo-lora32"} <= ids
312
+ assert {"garage-motion", "awning-control", "ttgo-lora32"} <= ids
313
313
  for e in examples:
314
314
  assert e["board_library_id"]
315
315
  assert e["mcu"] in {"esp8266", "esp32"}
316
+ assert client.get(f"/examples/{e['id']}").status_code == 200
316
317
 
317
318
 
318
319
  def test_get_example_returns_design_json(client):
@@ -37,6 +37,15 @@ def test_every_bundled_board_passes(lib):
37
37
  assert report.exists == "bundled"
38
38
 
39
39
 
40
+ def test_revision_pins_are_checked(lib):
41
+ v4 = (BUNDLED / "boards" / "heltec-wifi-lora32-v4.yaml").read_text()
42
+ assert check_board_yaml(v4, lib).errors == []
43
+ broken = v4.replace('"4.3": {radio: {txen: GPIO5}}', '"4.3": {radio: {txen: GPIO99}}')
44
+ assert "revisions.4.3.radio.txen: GPIO99 is not in gpio_capabilities" in _errors(broken, lib)
45
+ bad_key = v4.replace('"4.3": {radio: {txen: GPIO5}}', '"4.3": {radio: {pa_pin: GPIO5}}')
46
+ assert "unknown keys ['pa_pin']" in _errors(bad_key, lib)
47
+
48
+
40
49
  def test_draft_passes_and_renders_its_onboard_parts(lib):
41
50
  report = check_board_yaml(DRAFT, lib)
42
51
  assert report.ok, report.errors
@@ -207,3 +207,15 @@ def test_connector_adds_with_unassigned_positions(library):
207
207
  add_component_with_connections(design, library, library_id="connector_1x04", label="Plug", instance_id_hint="plug")
208
208
  targets = [c["target"] for c in design["connections"] if c["component_id"] == "plug"]
209
209
  assert len(targets) == 4 and all(t == {"kind": "net", "component_id": "", "net": ""} for t in targets)
210
+
211
+
212
+ def test_a_hint_esphome_refuses_is_suffixed(library):
213
+ """`bh1750` as the id of a bh1750 collides with the integration the
214
+ render loads, so ESPHome refuses it; `fan` on an output is fine."""
215
+ design = _empty_design()
216
+ instance_id, _ = add_component_with_connections(design, library, library_id="bh1750", instance_id_hint="bh1750")
217
+ assert instance_id == "bh1750_1"
218
+ assert [c["id"] for c in design["components"]] == ["bh1750_1"]
219
+ assert {c["component_id"] for c in design["connections"]} == {"bh1750_1"}
220
+ instance_id, _ = add_component_with_connections(design, library, library_id="gpio_output", instance_id_hint="fan")
221
+ assert instance_id == "fan"
@@ -201,6 +201,13 @@ def test_tbeam_powers_its_rails_before_using_them(lib):
201
201
  assert src.index("power.begin") < src.index("GPSSerial.begin")
202
202
 
203
203
 
204
+ def test_board_revision_picks_the_pa_pin(lib):
205
+ design = _design("heltec-wifi-lora32-v4")
206
+ assert "radio.setRfSwitchPins(RADIOLIB_NC, 46);" in generate_firmware(design, lib)["src/main.cpp"]
207
+ design.board.revision = "4.3"
208
+ assert "radio.setRfSwitchPins(RADIOLIB_NC, 5);" in generate_firmware(design, lib)["src/main.cpp"]
209
+
210
+
204
211
  def test_design_flash_size_override_wins_over_board_file(lib):
205
212
  # heltec-wifi-lora32-v3 pins 8MB; a design that measured 16MB on its own
206
213
  # unit gets the bigger partition table.
@@ -313,3 +320,86 @@ def test_parts_on_a_hub_read_through_it_and_name_their_fields(lib):
313
320
  names = [f["name"] for f in fields_for(design, lib)]
314
321
  assert {"ch0_voltage", "ch5_voltage", "mains_voltage", "mains_energy"} <= set(names)
315
322
  assert "ch5_voltage" in decode_js(fields_for(design, lib))
323
+
324
+
325
+ def _gpio(pin):
326
+ return {"kind": "gpio", "pin": pin}
327
+
328
+
329
+ def test_pin_blocks_wire_their_pins_and_name_fields_by_instance(lib):
330
+ parts = [("tach", "pulse_counter", {"input_mode": "INPUT"}),
331
+ ("knob", "rotary_encoder", {"min_value": 0, "max_value": 100}),
332
+ ("tank", "hc-sr04", {}), ("cell", "hx711", {"gain": 64}), ("door", "gpio_input", {}),
333
+ ("mains", "ct_clamp", {"calibration_point": "0.01 -> 1.0", "sample_duration": "1s"})]
334
+ conns = [("tach", "PULSE", _gpio("GPIO34")), ("knob", "A", _gpio("GPIO32")), ("knob", "B", _gpio("GPIO33")),
335
+ ("tank", "TRIGGER", _gpio("GPIO4")), ("tank", "ECHO", _gpio("GPIO36")),
336
+ ("cell", "DOUT", _gpio("GPIO39")), ("cell", "SCK", _gpio("GPIO25")), ("door", "IN", _gpio("GPIO2")),
337
+ ("mains", "OUT", _gpio("GPIO35"))]
338
+ design = _wired(parts, [], conns)
339
+ main = generate_firmware(design, lib)["src/main.cpp"]
340
+ assert "pinMode(34, INPUT);" in main
341
+ assert "attachInterrupt(digitalPinToInterrupt(34), tachIsr, RISING);" in main
342
+ assert "knobPosition += digitalRead(32) != digitalRead(33) ? 1 : -1;" in main
343
+ assert "if (_p > 100) _p = 100;" in main and "if (_p < 0) _p = 0;" in main
344
+ assert "pulseIn(36, HIGH, 30000)" in main
345
+ assert "cellScale.begin(39, 25, 64);" in main
346
+ assert "doorState = digitalRead(2) == HIGH;" in main
347
+ assert "const unsigned long _window = 1000;" in main
348
+ assert "const float _ampsPerVolt = 1.0 / 0.01;" in main and "analogReadMilliVolts(35)" in main
349
+ names = {f["name"] for f in fields_for(design, lib)}
350
+ assert {"tach_pulses", "knob_position", "tank_distance_cm", "cell_raw", "door_state", "mains_current"} <= names
351
+ assert "#include <HX711.h>" in main and "bogde/HX711@^0.7.5" in generate_firmware(design, lib)["platformio.ini"]
352
+
353
+
354
+ def test_ads1115_channels_read_through_their_hub(lib):
355
+ parts = [("ads", "ads1115", {"address": "0x49"}), ("ch0", "ads1115_channel", {}),
356
+ ("diff", "ads1115_channel", {"multiplexer": "A0_A1", "gain": "1.024"})]
357
+ buses = [{"id": "i2c0", "type": "i2c", "sda": "GPIO21", "scl": "GPIO22"}]
358
+ hub = {"kind": "component", "component_id": "ads"}
359
+ conns = [("ads", "SDA", _on("i2c0")), ("ads", "SCL", _on("i2c0")), ("ch0", "HUB", hub), ("diff", "HUB", hub)]
360
+ design = _wired(parts, buses, conns)
361
+ main = generate_firmware(design, lib)["src/main.cpp"]
362
+ assert "adsOk = adsAds.begin(0x49, &Wire);" in main
363
+ assert "ch0Mv = (int16_t)(adsRead(0, GAIN_TWOTHIRDS) * 1000.0f);" in main
364
+ assert "diffMv = (int16_t)(adsRead(4, GAIN_FOUR) * 1000.0f);" in main
365
+ assert {"ch0_voltage", "diff_voltage"} <= {f["name"] for f in fields_for(design, lib)}
366
+
367
+
368
+ def test_register_level_i2c_blocks_and_the_power_meter(lib):
369
+ design = _design_with("bmp180", "mpu6886", "sgp4x")
370
+ main = generate_firmware(design, lib)["src/main.cpp"]
371
+ assert "bmp180Ok = bmp180.begin(BMP085_ULTRAHIGHRES, &Wire);" in main
372
+ assert "mpu6886Write(0x6B, 0x01) && mpu6886Write(0x1B, 0x18) && mpu6886Write(0x1C, 0x00)" in main
373
+ assert "{0x26, 0x0F, 0x80, 0x00, 0xA2, 0x66, 0x66, 0x93}" in main and "0x26, 0x12" not in main
374
+ names = {f["name"] for f in fields_for(design, lib)}
375
+ assert {"bmp180_pressure", "mpu6886_accel_z", "mpu6886_gyro_x", "sgp4x_voc_raw"} <= names
376
+ sgp41 = _wired([("air", "sgp4x", {"model": "sgp41"})],
377
+ [{"id": "i2c0", "type": "i2c", "sda": "GPIO21", "scl": "GPIO22"}],
378
+ [("air", "SDA", _on("i2c0")), ("air", "SCL", _on("i2c0"))])
379
+ assert "0x26, 0x12" in generate_firmware(sgp41, lib)["src/main.cpp"]
380
+ meter = _wired([("plug", "hlw8012", {"model": "BL0937", "voltage_divider": 1700, "current_resistor": "0.002 ohm"})],
381
+ [], [("plug", "SEL", _gpio("GPIO4")), ("plug", "CF", _gpio("GPIO34")), ("plug", "CF1", _gpio("GPIO39"))])
382
+ main = generate_firmware(meter, lib)["src/main.cpp"]
383
+ assert "hlw8012.begin(34, 39, 4, LOW, true);" in main
384
+ assert "hlw8012.setResistors(0.002, (1700 - 1.0) * 1000.0, 1000.0);" in main
385
+ assert {"hlw8012_voltage", "hlw8012_energy"} <= {f["name"] for f in fields_for(meter, lib)}
386
+
387
+
388
+ def test_event_parts_report_the_last_id_a_count_and_its_age(lib):
389
+ parts = [("badge", "pn532", {}), ("door", "wiegand", {}), ("ir", "remote_receiver", {})]
390
+ buses = [{"id": "i2c0", "type": "i2c", "sda": "GPIO21", "scl": "GPIO22"}]
391
+ conns = [("badge", "SDA", _on("i2c0")), ("badge", "SCL", _on("i2c0")),
392
+ ("door", "D0", _gpio("GPIO32")), ("door", "D1", _gpio("GPIO33")), ("ir", "OUT", _gpio("GPIO34"))]
393
+ design = _wired(parts, buses, conns)
394
+ out = generate_firmware(design, lib)
395
+ main = out["src/main.cpp"]
396
+ assert "badgeNfc.readPassiveTargetID(PN532_MIFARE_ISO14443A, _uid, &_len, 50)" in main
397
+ assert "attachInterrupt(digitalPinToInterrupt(32), doorD0Isr, FALLING);" in main
398
+ assert "IRrecv irRecv(34);" in main and "irRecv.enableIRIn();" in main
399
+ for dep in ("adafruit/Adafruit PN532@^1.3.3", "crankyoldgit/IRremoteESP8266@^2.8.6"):
400
+ assert dep in out["platformio.ini"]
401
+ names = [f["name"] for f in fields_for(design, lib)]
402
+ for inst in ("badge", "door", "ir"):
403
+ assert [n for n in names if n.startswith(inst)] == [f"{inst}_last", f"{inst}_count", f"{inst}_last_age_min"]
404
+ age = next(f for f in fields_for(design, lib) if f["name"] == "door_last_age_min")
405
+ assert "doorCount" in age["cpp_expr"] and "65535UL" in age["cpp_expr"]
@@ -434,6 +434,22 @@ def test_front_end_pins_reach_the_esphome_radio_block():
434
434
  assert "rxen_pin" not in radio
435
435
 
436
436
 
437
+ def test_board_revision_moves_the_pa_pin():
438
+ """Measured 2026-10-24: on a V4.3 the PA is switched by GPIO5 and GPIO46
439
+ does nothing, so a design that names the revision gets GPIO5 and the
440
+ rest of the V4 recipe unchanged."""
441
+ from wirestudio.generate.yaml_gen import build_yaml_dict
442
+
443
+ design = _v4_design()
444
+ design.board.revision = "4.3"
445
+ radio = build_yaml_dict(design, default_library())["lorawan"]["radio"]
446
+ assert radio["txen_pin"] == "GPIO5"
447
+ assert radio["setup_high"] == ["GPIO7", "GPIO2"]
448
+ design.board.revision = "4.9"
449
+ with pytest.raises(ValueError, match="no revision"):
450
+ build_yaml_dict(design, default_library())
451
+
452
+
437
453
  def test_sx1262_radio_keys_are_emitted():
438
454
  from wirestudio.generate.yaml_gen import build_yaml_dict
439
455
 
@@ -32,7 +32,12 @@ PRELUDE = r"""
32
32
  #include <deque>
33
33
  #include <functional>
34
34
  #include <vector>
35
- enum { SERIAL_8N1, SERIAL_8E1, SERIAL_8O1, LOW = 0, HIGH = 1, OUTPUT = 1, MSBFIRST = 1, SPI_MODE0 = 0 };
35
+ enum { SERIAL_8N1, SERIAL_8E1, SERIAL_8O1, LOW = 0, HIGH = 1, OUTPUT = 1, INPUT_PULLUP = 5, FALLING = 2, MSBFIRST = 1, SPI_MODE0 = 0 };
36
+ #define IRAM_ATTR
37
+ #define digitalPinToInterrupt(p) (p)
38
+ void attachInterrupt(int, void (*)(), int) {}
39
+ void noInterrupts() {}
40
+ void interrupts() {}
36
41
  unsigned long now_ms = 1;
37
42
  unsigned long millis() { return now_ms++; }
38
43
  void delay(unsigned long ms) { now_ms += ms; }
@@ -277,3 +282,34 @@ def test_sdm_meter_reads_big_endian_floats(tmp_path, three_phase, watts):
277
282
  _answer(_read(80), T._modbus_reply(regs)(_read(80))))
278
283
  assert got == {"meter_voltage": 2315, "meter_current": 425, "meter_power": watts, "meter_frequency": 5002,
279
284
  "meter_import_energy": 123450, "meter_export_energy": 675}
285
+
286
+
287
+ def _wiegand(value: int, n: int) -> list[int]:
288
+ data = [value >> i & 1 for i in range(n - 3, -1, -1)]
289
+ first, last = {26: (12, 12), 34: (16, 16), 37: (18, 17)}[n]
290
+ return [sum(data[:first]) % 2] + data + [1 - sum(data[last:]) % 2]
291
+
292
+
293
+ def _edges(inst, frame) -> str:
294
+ return "".join(f" {inst}D{bit}Isr(); delay(2);\n" for bit in frame) + " delay(30);\n"
295
+
296
+
297
+ @pytest.mark.parametrize("frame, want", [
298
+ (_wiegand(1 << 16 | 12345, 26), 1 << 16 | 12345),
299
+ (_wiegand(0xDEADBEEF, 34), 0xDEADBEEF),
300
+ (_wiegand(0x5DEADBEEF, 37), 0xDEADBEEF), # the top three bits do not fit the field
301
+ ([1, 0, 1, 1], 0), # a key, not a tag
302
+ ])
303
+ def test_wiegand_decodes_a_tag_after_the_gap(tmp_path, frame, want):
304
+ design = _design([("dut", "wiegand", {})], (),
305
+ [("dut", "D0", {"kind": "gpio", "pin": "GPIO32"}), ("dut", "D1", {"kind": "gpio", "pin": "GPIO33"})])
306
+ got = run(tmp_path, design, _edges("dut", frame))
307
+ assert got == {"dut_last": want, "dut_count": int(want != 0), "dut_last_age_min": 0 if want else 65535}
308
+
309
+
310
+ def test_wiegand_drops_a_frame_with_bad_parity(tmp_path):
311
+ bad = _wiegand(42, 26)
312
+ bad[0] ^= 1
313
+ design = _design([("dut", "wiegand", {})], (),
314
+ [("dut", "D0", {"kind": "gpio", "pin": "GPIO32"}), ("dut", "D1", {"kind": "gpio", "pin": "GPIO33"})])
315
+ assert run(tmp_path, design, _edges("dut", bad)) == {"dut_last": 0, "dut_count": 0, "dut_last_age_min": 65535}
@@ -252,3 +252,52 @@ def test_a_clean_current_document_is_returned_untouched():
252
252
  doc = json.loads((REPO_ROOT / "wirestudio" / "examples" / "t-beam.json").read_text())
253
253
  result = migrate(doc)
254
254
  assert result.document is doc and not result.changed
255
+
256
+
257
+ def _room_climate_named_bh1750() -> dict:
258
+ doc = json.loads((REPO_ROOT / "wirestudio" / "examples" / "room-climate.json").read_text())
259
+ doc["components"] = [{**c, "id": "bh1750"} if c["id"] == "lux1" else c for c in doc["components"]]
260
+ doc["connections"] = [{**c, "component_id": "bh1750"} if c["component_id"] == "lux1" else c
261
+ for c in doc["connections"]]
262
+ doc["automations"] = [{"id": "bright", "trigger": {"component_id": "bh1750", "event": "on_value"},
263
+ "actions": [{"component_id": "th1", "action": "update"}]}]
264
+ doc["esphome_extras"] = {"x": {"sensor_id": "bh1750"}, "note": "bh1750 stays as text"}
265
+ return doc
266
+
267
+
268
+ def test_an_id_esphome_refuses_is_renamed_at_any_version():
269
+ doc = _room_climate_named_bh1750()
270
+ result = migrate(doc)
271
+ assert result.applied == ["rename_integration_name_ids"] and result.changed
272
+ out = result.document
273
+ assert [c["id"] for c in out["components"]] == ["bh1750_1", "th1"]
274
+ assert [c["library_id"] for c in out["components"]] == ["bh1750", "aht10"]
275
+ assert {c["component_id"] for c in out["connections"]} == {"bh1750_1", "th1"}
276
+ assert out["automations"][0]["trigger"]["component_id"] == "bh1750_1"
277
+ assert out["esphome_extras"] == {"x": {"sensor_id": "bh1750_1"}, "note": "bh1750 stays as text"}
278
+ assert next(c["id"] for c in doc["components"] if c["library_id"] == "bh1750") == "bh1750", "input not mutated"
279
+
280
+
281
+ def test_an_id_esphome_accepts_is_kept():
282
+ doc = _room_climate_named_bh1750()
283
+ doc["components"] = [{**c, "id": "fan"} if c["id"] == "bh1750" else c for c in doc["components"]]
284
+ doc["connections"] = [{**c, "component_id": "fan"} if c["component_id"] == "bh1750" else c
285
+ for c in doc["connections"]]
286
+ result = migrate(doc)
287
+ assert result.document is doc and not result.changed
288
+
289
+
290
+ def test_the_renamed_design_renders_and_validates(library, tmp_path):
291
+ from wirestudio.generate.yaml_gen import render_yaml
292
+ from wirestudio.migrate import load_design
293
+ from wirestudio.validate import dry_run, esphome_available, write_secrets_stub
294
+
295
+ doc = _room_climate_named_bh1750()
296
+ del doc["automations"], doc["esphome_extras"]
297
+ text = render_yaml(load_design(doc, library), library)
298
+ assert "id: bh1750_1" in text and "id: bh1750\n" not in text
299
+ if esphome_available():
300
+ (tmp_path / "design.yaml").write_text(text)
301
+ write_secrets_stub(text, tmp_path / "secrets.yaml")
302
+ ok, output = dry_run(tmp_path / "design.yaml")
303
+ assert ok, output
@@ -0,0 +1,121 @@
1
+ """Promoting a community library entry into the bundled library."""
2
+ from __future__ import annotations
3
+
4
+ import json
5
+ import shutil
6
+ import sys
7
+ from pathlib import Path
8
+
9
+ import pytest
10
+
11
+ ROOT = Path(__file__).resolve().parent.parent
12
+ sys.path.insert(0, str(ROOT / "scripts"))
13
+ import coverage_matrix # noqa: E402
14
+ import promote_library # noqa: E402
15
+
16
+ from wirestudio.library import Library # noqa: E402
17
+ from wirestudio.library.board_check import check_board_yaml # noqa: E402
18
+ from wirestudio.library.check import check_component_yaml # noqa: E402
19
+
20
+ FIXTURES = ROOT / "tests" / "fixtures"
21
+ LED = (FIXTURES / "components" / "led_driver_npn.yaml").read_text()
22
+ S2 = (FIXTURES / "boards" / "lolin-s2-mini.yaml").read_text()
23
+ META = "author: octocat\ntags: [esp32s2]\nsource: https://www.wemos.cc/en/latest/s2/s2_mini.html\n"
24
+
25
+
26
+ @pytest.fixture
27
+ def repo(tmp_path):
28
+ r = tmp_path / "repo"
29
+ shutil.copytree(ROOT / "wirestudio" / "library", r / "wirestudio" / "library",
30
+ ignore=shutil.ignore_patterns("__pycache__", "*.py"))
31
+ shutil.copytree(ROOT / "wirestudio" / "examples", r / "wirestudio" / "examples")
32
+ (r / "scripts").mkdir()
33
+ for name in ("coverage_baseline.yaml", "framework_baseline.yaml"):
34
+ shutil.copy(ROOT / "scripts" / name, r / "scripts" / name)
35
+ shutil.copy(ROOT / "CHANGELOG.md", r / "CHANGELOG.md")
36
+ return r
37
+
38
+
39
+ @pytest.fixture
40
+ def catalogue(tmp_path):
41
+ c = tmp_path / "catalogue"
42
+ for kind, lid, text in (("boards", "lolin-s2-mini", S2), ("components", "led_driver_npn", LED)):
43
+ d = c / "library" / kind / lid
44
+ d.mkdir(parents=True)
45
+ (d / promote_library.KINDS[kind]).write_text(text)
46
+ (d / "meta.yaml").write_text(META)
47
+ shipped = c / "designs" / "porch-led" / "components"
48
+ shipped.mkdir(parents=True)
49
+ (shipped / "led_driver_npn.yaml").write_text(LED)
50
+ return c
51
+
52
+
53
+ def run(catalogue, repo, entry, *flags):
54
+ return promote_library.main([str(catalogue), entry, "--repo", str(repo), *flags])
55
+
56
+
57
+ def strict(repo) -> int:
58
+ library = Library(repo / "wirestudio" / "library")
59
+ examples = {p.stem: json.loads(p.read_text()) for p in (repo / "wirestudio" / "examples").glob("*.json")}
60
+ return coverage_matrix._strict_check(library, examples, repo / "scripts" / "coverage_baseline.yaml",
61
+ repo / "scripts" / "framework_baseline.yaml")
62
+
63
+
64
+ def test_a_dry_run_writes_nothing(catalogue, repo, capsys):
65
+ before = (repo / "CHANGELOG.md").read_text()
66
+ assert run(catalogue, repo, "boards/lolin-s2-mini") == 0
67
+ out = capsys.readouterr().out
68
+ assert "# Contributed by @octocat" in out and "Dry run" in out
69
+ assert not (repo / "wirestudio" / "library" / "boards" / "lolin-s2-mini.yaml").exists()
70
+ assert (repo / "CHANGELOG.md").read_text() == before
71
+
72
+
73
+ def test_a_board_is_promoted_with_its_credit_and_the_gate_stays_green(catalogue, repo, capsys):
74
+ assert strict(repo) == 0
75
+ assert run(catalogue, repo, "boards/lolin-s2-mini", "--write") == 0
76
+ out = capsys.readouterr().out
77
+ text = (repo / "wirestudio" / "library" / "boards" / "lolin-s2-mini.yaml").read_text()
78
+ assert text.startswith("# Contributed by @octocat through the WireStudio community library\n"
79
+ "# (moellere/wirestudio-designs, library/boards/lolin-s2-mini), MIT.\n"
80
+ "# Written from: https://www.wemos.cc/en/latest/s2/s2_mini.html\n")
81
+ assert text.endswith(S2)
82
+ library = Library(repo / "wirestudio" / "library")
83
+ report = check_board_yaml(text, library)
84
+ assert report.ok and report.exists == "bundled"
85
+ changelog = (repo / "CHANGELOG.md").read_text()
86
+ unreleased = changelog[changelog.index("## [Unreleased]"):changelog.index("\n## [", changelog.index("## [Unreleased]") + 1)]
87
+ assert "**LOLIN S2 Mini** (`lolin-s2-mini`), a community board by @octocat" in unreleased
88
+ assert "coverage_baseline.yaml: boards: lolin-s2-mini" in out
89
+ assert "library/boards/lolin-s2-mini/" in out
90
+ assert strict(repo) == 0
91
+
92
+
93
+ def test_a_component_gets_its_framework_gaps_and_the_catalogue_copies_to_remove(catalogue, repo, capsys):
94
+ assert run(catalogue, repo, "components/led_driver_npn", "--write") == 0
95
+ out = capsys.readouterr().out
96
+ library = Library(repo / "wirestudio" / "library")
97
+ assert check_component_yaml(
98
+ (repo / "wirestudio" / "library" / "components" / "led_driver_npn.yaml").read_text(), library).ok
99
+ assert "framework_baseline.yaml: circuitpython: led_driver_npn" in out
100
+ assert "designs/porch-led/components/led_driver_npn.yaml" in out
101
+ assert strict(repo) == 0
102
+
103
+
104
+ def test_promotion_refuses_what_it_cannot_credit_or_bundle(catalogue, repo, capsys):
105
+ meta = catalogue / "library" / "boards" / "lolin-s2-mini" / "meta.yaml"
106
+ meta.write_text("author: octocat\nsource: http://example.com\n")
107
+ assert run(catalogue, repo, "boards/lolin-s2-mini", "--write") == 1
108
+ assert "no https `source`" in capsys.readouterr().err
109
+ meta.write_text(META)
110
+
111
+ board = catalogue / "library" / "boards" / "lolin-s2-mini" / "board.yaml"
112
+ board.write_text(S2.replace("pin: GPIO15", "pin: GPIO14"))
113
+ assert run(catalogue, repo, "boards/lolin-s2-mini", "--write") == 1
114
+ assert "GPIO14 is not in gpio_capabilities" in capsys.readouterr().err
115
+ assert not (repo / "wirestudio" / "library" / "boards" / "lolin-s2-mini.yaml").exists()
116
+
117
+ board.write_text(S2)
118
+ assert run(catalogue, repo, "boards/lolin-s2-mini", "--write") == 0
119
+ assert run(catalogue, repo, "boards/lolin-s2-mini", "--write") == 1
120
+ assert "already exists" in capsys.readouterr().err
121
+ assert run(catalogue, repo, "modules/x") == 2
@@ -54,16 +54,16 @@ def test_the_pmic_supplies_the_cell_voltage(design, lib):
54
54
  def test_payload_carries_gps_environment_and_battery(design, lib):
55
55
  names = [f["name"] for f in codec.fields_for(design, lib)]
56
56
  assert names == ["uptime_s", "boot_count", "lat", "lon", "alt_m",
57
- "sats", "fix_age_min", "temp_c", "humidity", "batt_mv"]
57
+ "sats", "fix_age_min", "onboard_button_state", "temp_c", "humidity", "batt_mv"]
58
58
 
59
59
 
60
60
  def test_the_datarate_floor_clears_the_payload(design, lib):
61
- """US915 DR0 caps the app payload at 11 bytes and this payload is 24, so
61
+ """US915 DR0 caps the app payload at 11 bytes and this payload is 25, so
62
62
  a build that let ADR reach DR0 would have its uplinks rejected outright.
63
- 24 is still well inside DR1's 53-byte cap, so adding fix_age_min cost no
64
- range."""
63
+ 25 is still well inside DR1's 53-byte cap, so adding fix_age_min and the
64
+ button's state cost no range."""
65
65
  size = codec.payload_size(codec.fields_for(design, lib))
66
- assert size == 24
66
+ assert size == 25
67
67
  assert size <= 53, "still fits DR1"
68
68
 
69
69
  cpp = generate_firmware(design, lib)["src/main.cpp"]
@@ -98,3 +98,18 @@ def test_add_bus_refuses_an_id_esphome_reserves(library):
98
98
  assert result["ok"] is False
99
99
  assert "reserved" in result["error"]
100
100
  assert design["buses"] == []
101
+
102
+
103
+ def test_add_bus_refuses_a_second_bus_on_the_same_pins(library):
104
+ """A second I2C bus on the pins the first already uses can never render
105
+ (ESPHome sees each pin twice). The embedded agent did exactly this on
106
+ first-i2c-part when add_component had already seeded i2c0; the tool
107
+ names the bus to connect to instead."""
108
+ design = _design("wemos-d1-mini")
109
+ assert _run_add_bus(design, library, id="i2c0", type="i2c", sda="D2", scl="D1")["ok"]
110
+ result = _run_add_bus(design, library, id="i2c_1", type="i2c", sda="D2", scl="D1")
111
+ assert result["ok"] is False and result["existing_bus_id"] == "i2c0"
112
+ assert "already runs on D1, D2" in result["error"]
113
+ assert [b["id"] for b in design["buses"]] == ["i2c0"]
114
+ assert _run_add_bus(design, library, id="i2c_1", type="i2c", sda="D6", scl="D5")["ok"]
115
+ assert _run_add_bus(design, library, id="u1", type="uart", rx="D7", tx="D5")["ok"] is False