boneio 1.6.0.dev22__tar.gz → 1.6.0.dev23__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 (782) hide show
  1. {boneio-1.6.0.dev22/boneio.egg-info → boneio-1.6.0.dev23}/PKG-INFO +1 -1
  2. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/auth/models.py +66 -1
  3. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/auth/store.py +87 -1
  4. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/manager/security_alert.py +28 -0
  5. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/integration/homeassistant.py +34 -0
  6. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/manifest.json +1 -1
  7. boneio-1.6.0.dev23/boneio/migrations/plans/manifest.sig +0 -0
  8. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/runner.py +10 -5
  9. boneio-1.6.0.dev23/boneio/version.py +2 -0
  10. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/app.py +12 -0
  11. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/bind.py +25 -0
  12. boneio-1.6.0.dev23/boneio/webui/frontend-dist/assets/AccountsView-Cja7P4mF.js +1 -0
  13. boneio-1.6.0.dev22/boneio/webui/frontend-dist/assets/AppInitContext-BL616lQR.js → boneio-1.6.0.dev23/boneio/webui/frontend-dist/assets/AppInitContext-CcKaS8cK.js +1 -1
  14. boneio-1.6.0.dev22/boneio/webui/frontend-dist/assets/BackupSection-Dsjck3YU.js → boneio-1.6.0.dev23/boneio/webui/frontend-dist/assets/BackupSection-CXs6ghs_.js +1 -1
  15. boneio-1.6.0.dev22/boneio/webui/frontend-dist/assets/BindingMatrix-CM0nlDNk.js → boneio-1.6.0.dev23/boneio/webui/frontend-dist/assets/BindingMatrix-D43lx3X2.js +1 -1
  16. boneio-1.6.0.dev22/boneio/webui/frontend-dist/assets/DeviceControlSection-p-vfKyn_.js → boneio-1.6.0.dev23/boneio/webui/frontend-dist/assets/DeviceControlSection-9wDj7En0.js +1 -1
  17. boneio-1.6.0.dev22/boneio/webui/frontend-dist/assets/DiagnosticsView-BusyzwzV.js → boneio-1.6.0.dev23/boneio/webui/frontend-dist/assets/DiagnosticsView-CiELKgPW.js +1 -1
  18. boneio-1.6.0.dev22/boneio/webui/frontend-dist/assets/EntityGrid-CuU32z0i.js → boneio-1.6.0.dev23/boneio/webui/frontend-dist/assets/EntityGrid-DOcXsIHL.js +1 -1
  19. boneio-1.6.0.dev22/boneio/webui/frontend-dist/assets/FactoryResetSection-0-n-q7hL.js → boneio-1.6.0.dev23/boneio/webui/frontend-dist/assets/FactoryResetSection-D5PxL6PU.js +1 -1
  20. boneio-1.6.0.dev22/boneio/webui/frontend-dist/assets/FormInputToggle-Dibs4Ze4.js → boneio-1.6.0.dev23/boneio/webui/frontend-dist/assets/FormInputToggle-DRYq74jV.js +1 -1
  21. boneio-1.6.0.dev22/boneio/webui/frontend-dist/assets/HaDashboardWizard-DdH70_zV.js → boneio-1.6.0.dev23/boneio/webui/frontend-dist/assets/HaDashboardWizard-BXNeb9iY.js +1 -1
  22. boneio-1.6.0.dev22/boneio/webui/frontend-dist/assets/HostnameSection-Cr8XthQe.js → boneio-1.6.0.dev23/boneio/webui/frontend-dist/assets/HostnameSection-CVwt528v.js +1 -1
  23. boneio-1.6.0.dev22/boneio/webui/frontend-dist/assets/InputsView-COvuriaS.js → boneio-1.6.0.dev23/boneio/webui/frontend-dist/assets/InputsView-BzNWV5-A.js +1 -1
  24. boneio-1.6.0.dev23/boneio/webui/frontend-dist/assets/LocationSection-CvVPCVQJ.js +2 -0
  25. boneio-1.6.0.dev22/boneio/webui/frontend-dist/assets/LoggerForm-CJHoif6x.js → boneio-1.6.0.dev23/boneio/webui/frontend-dist/assets/LoggerForm-CaP96e_i.js +1 -1
  26. boneio-1.6.0.dev22/boneio/webui/frontend-dist/assets/LongPressWrapper-CZxppyE5.js → boneio-1.6.0.dev23/boneio/webui/frontend-dist/assets/LongPressWrapper-DvdMubY1.js +1 -1
  27. boneio-1.6.0.dev22/boneio/webui/frontend-dist/assets/MigrationsSection-BvnXC_Bu.js → boneio-1.6.0.dev23/boneio/webui/frontend-dist/assets/MigrationsSection-DhSLu8O7.js +1 -1
  28. boneio-1.6.0.dev22/boneio/webui/frontend-dist/assets/ModbusView-CHhPZ0Qn.js → boneio-1.6.0.dev23/boneio/webui/frontend-dist/assets/ModbusView-Yfk24752.js +1 -1
  29. boneio-1.6.0.dev22/boneio/webui/frontend-dist/assets/MqttPasswordsSection-BntHkRCp.js → boneio-1.6.0.dev23/boneio/webui/frontend-dist/assets/MqttPasswordsSection-ChX8xfi2.js +1 -1
  30. boneio-1.6.0.dev22/boneio/webui/frontend-dist/assets/NodeRedManagement-4v-7oU8t.js → boneio-1.6.0.dev23/boneio/webui/frontend-dist/assets/NodeRedManagement-0OTcCHug.js +1 -1
  31. boneio-1.6.0.dev22/boneio/webui/frontend-dist/assets/OutputsView-dhaCBScV.js → boneio-1.6.0.dev23/boneio/webui/frontend-dist/assets/OutputsView-BDRW725-.js +1 -1
  32. boneio-1.6.0.dev22/boneio/webui/frontend-dist/assets/SecurityView-DaVxDa7A.js → boneio-1.6.0.dev23/boneio/webui/frontend-dist/assets/SecurityView-CYS7pzN3.js +1 -1
  33. boneio-1.6.0.dev22/boneio/webui/frontend-dist/assets/SensorView-Dwbxn7dc.js → boneio-1.6.0.dev23/boneio/webui/frontend-dist/assets/SensorView-KFUB7I3d.js +1 -1
  34. boneio-1.6.0.dev23/boneio/webui/frontend-dist/assets/SystemState-CwEqCEJ1.js +2 -0
  35. boneio-1.6.0.dev22/boneio/webui/frontend-dist/assets/TemplatesView-BkWBNuBt.js → boneio-1.6.0.dev23/boneio/webui/frontend-dist/assets/TemplatesView-B7TRhXE_.js +1 -1
  36. boneio-1.6.0.dev22/boneio/webui/frontend-dist/assets/TilePicker-wCRR-95S.js → boneio-1.6.0.dev23/boneio/webui/frontend-dist/assets/TilePicker-BkThBQEp.js +1 -1
  37. boneio-1.6.0.dev22/boneio/webui/frontend-dist/assets/TimezoneSection-4WrA4QVx.js → boneio-1.6.0.dev23/boneio/webui/frontend-dist/assets/TimezoneSection-DjN3itva.js +1 -1
  38. boneio-1.6.0.dev22/boneio/webui/frontend-dist/assets/UISettings-6-YfhSfU.js → boneio-1.6.0.dev23/boneio/webui/frontend-dist/assets/UISettings-BzSc-26d.js +7 -7
  39. boneio-1.6.0.dev22/boneio/webui/frontend-dist/assets/UpdateSafetyNotice-DqgegOrx.js → boneio-1.6.0.dev23/boneio/webui/frontend-dist/assets/UpdateSafetyNotice-6xbzteiU.js +1 -1
  40. boneio-1.6.0.dev22/boneio/webui/frontend-dist/assets/aiConfig-BG8fc2KC.js → boneio-1.6.0.dev23/boneio/webui/frontend-dist/assets/aiConfig-D4fX5HiN.js +1 -1
  41. boneio-1.6.0.dev22/boneio/webui/frontend-dist/assets/aiWizardPrompt-gdQBmsHK.js → boneio-1.6.0.dev23/boneio/webui/frontend-dist/assets/aiWizardPrompt-Do2AU6Co.js +1 -1
  42. boneio-1.6.0.dev22/boneio/webui/frontend-dist/assets/axios-DJBeJS4R.js → boneio-1.6.0.dev23/boneio/webui/frontend-dist/assets/axios-DulIOGd1.js +4 -4
  43. boneio-1.6.0.dev22/boneio/webui/frontend-dist/assets/bodies-CjF4pwp7.js → boneio-1.6.0.dev23/boneio/webui/frontend-dist/assets/bodies-DfJJi5si.js +1 -1
  44. boneio-1.6.0.dev22/boneio/webui/frontend-dist/assets/configCache-BS98BpF9.js → boneio-1.6.0.dev23/boneio/webui/frontend-dist/assets/configCache-CPKXFBoa.js +1 -1
  45. boneio-1.6.0.dev23/boneio/webui/frontend-dist/assets/index-CxfYcGSv.js +42 -0
  46. boneio-1.6.0.dev22/boneio/webui/frontend-dist/assets/monaco-Dnjb8Zxh.js → boneio-1.6.0.dev23/boneio/webui/frontend-dist/assets/monaco-6sKMMwfA.js +1 -1
  47. boneio-1.6.0.dev22/boneio/webui/frontend-dist/assets/monaco-B_5BWTJG.js → boneio-1.6.0.dev23/boneio/webui/frontend-dist/assets/monaco-Cq5yJ32W.js +3 -3
  48. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/frontend-dist/index.html +4 -4
  49. boneio-1.6.0.dev23/boneio/webui/frontend-dist/sw.js +1 -0
  50. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/middleware/auth.py +205 -28
  51. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/middleware/policy.py +68 -0
  52. boneio-1.6.0.dev23/boneio/webui/middleware/proxy.py +112 -0
  53. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/recovery/app.py +2 -2
  54. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/routes/accounts.py +33 -10
  55. boneio-1.6.0.dev23/boneio/webui/routes/auth.py +331 -0
  56. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/routes/onboarding.py +2 -2
  57. boneio-1.6.0.dev23/boneio/webui/security_events.py +104 -0
  58. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/websocket_manager.py +13 -0
  59. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23/boneio.egg-info}/PKG-INFO +1 -1
  60. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio.egg-info/SOURCES.txt +38 -36
  61. boneio-1.6.0.dev22/boneio/migrations/plans/manifest.sig +0 -0
  62. boneio-1.6.0.dev22/boneio/version.py +0 -2
  63. boneio-1.6.0.dev22/boneio/webui/frontend-dist/assets/AccountsView-DrYCKrnn.js +0 -1
  64. boneio-1.6.0.dev22/boneio/webui/frontend-dist/assets/LocationSection-Bs9uyL64.js +0 -2
  65. boneio-1.6.0.dev22/boneio/webui/frontend-dist/assets/SystemState-B25n_1RT.js +0 -2
  66. boneio-1.6.0.dev22/boneio/webui/frontend-dist/assets/index-0xWkEPA0.js +0 -42
  67. boneio-1.6.0.dev22/boneio/webui/frontend-dist/sw.js +0 -1
  68. boneio-1.6.0.dev22/boneio/webui/routes/auth.py +0 -134
  69. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/LICENSE +0 -0
  70. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/MANIFEST.in +0 -0
  71. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/README.md +0 -0
  72. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/__init__.py +0 -0
  73. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/boards/0.2/input.yaml +0 -0
  74. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/boards/0.2/output_24_16.yaml +0 -0
  75. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/boards/0.2/output_32_10.yaml +0 -0
  76. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/boards/0.2/output_32_5.yaml +0 -0
  77. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/boards/0.2/output_cover.yaml +0 -0
  78. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/boards/0.2/output_cover_mix.yaml +0 -0
  79. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/boards/0.3/input.yaml +0 -0
  80. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/boards/0.3/output_24_16.yaml +0 -0
  81. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/boards/0.3/output_32_10.yaml +0 -0
  82. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/boards/0.3/output_32_5.yaml +0 -0
  83. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/boards/0.3/output_cover.yaml +0 -0
  84. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/boards/0.3/output_cover_mix.yaml +0 -0
  85. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/boards/0.4/input.yaml +0 -0
  86. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/boards/0.4/output_24_16.yaml +0 -0
  87. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/boards/0.4/output_32_10.yaml +0 -0
  88. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/boards/0.4/output_32_5.yaml +0 -0
  89. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/boards/0.4/output_cover.yaml +0 -0
  90. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/boards/0.4/output_cover_mix.yaml +0 -0
  91. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/boards/0.5/input.yaml +0 -0
  92. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/boards/0.5/output_24_16.yaml +0 -0
  93. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/boards/0.5/output_32_10.yaml +0 -0
  94. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/boards/0.5/output_cover.yaml +0 -0
  95. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/boards/0.5/output_cover_mix.yaml +0 -0
  96. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/boards/0.6/input.yaml +0 -0
  97. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/boards/0.6/output_24_16.yaml +0 -0
  98. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/boards/0.6/output_32_10.yaml +0 -0
  99. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/boards/0.6/output_cover.yaml +0 -0
  100. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/boards/0.6/output_cover_mix.yaml +0 -0
  101. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/boards/0.7/input.yaml +0 -0
  102. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/boards/0.7/output_24_16.yaml +0 -0
  103. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/boards/0.7/output_32_10.yaml +0 -0
  104. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/boards/0.7/output_48_4.yaml +0 -0
  105. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/boards/0.7/output_cover.yaml +0 -0
  106. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/boards/0.7/output_cover_mix.yaml +0 -0
  107. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/boards/0.8/input.yaml +0 -0
  108. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/boards/0.8/output_24_16.yaml +0 -0
  109. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/boards/0.8/output_32_10.yaml +0 -0
  110. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/boards/0.8/output_48_4.yaml +0 -0
  111. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/boards/0.8/output_cover.yaml +0 -0
  112. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/boards/0.8/output_cover_mix.yaml +0 -0
  113. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/boards/1.0/input.yaml +0 -0
  114. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/boards/1.0/output_24_16.yaml +0 -0
  115. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/boards/1.0/output_32_10.yaml +0 -0
  116. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/boards/1.0/output_48_4.yaml +0 -0
  117. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/boards/1.0/output_cover.yaml +0 -0
  118. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/boards/1.0/output_cover_mix.yaml +0 -0
  119. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/boards/1.1/input.yaml +0 -0
  120. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/boards/1.1/output_24_16.yaml +0 -0
  121. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/boards/1.1/output_32_10.yaml +0 -0
  122. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/boards/1.1/output_48_4.yaml +0 -0
  123. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/boards/1.1/output_cover.yaml +0 -0
  124. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/boards/1.1/output_cover_mix.yaml +0 -0
  125. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/bonecli.py +0 -0
  126. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/components/__init__.py +0 -0
  127. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/components/cover/__init__.py +0 -0
  128. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/components/cover/cover.py +0 -0
  129. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/components/cover/remote.py +0 -0
  130. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/components/cover/time_based.py +0 -0
  131. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/components/cover/venetian.py +0 -0
  132. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/components/group/__init__.py +0 -0
  133. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/components/group/output_group.py +0 -0
  134. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/components/input/__init__.py +0 -0
  135. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/components/input/binary_sensor.py +0 -0
  136. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/components/input/detectors.py +0 -0
  137. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/components/input/event.py +0 -0
  138. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/components/input/remote/__init__.py +0 -0
  139. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/components/input/remote/base.py +0 -0
  140. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/components/input/remote/esphome.py +0 -0
  141. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/components/input/remote/mqtt.py +0 -0
  142. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/components/irrigation/__init__.py +0 -0
  143. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/components/irrigation/controller.py +0 -0
  144. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/components/irrigation/water_source.py +0 -0
  145. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/components/output/__init__.py +0 -0
  146. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/components/output/basic.py +0 -0
  147. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/components/output/buzzer.py +0 -0
  148. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/components/output/mcp.py +0 -0
  149. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/components/output/pca.py +0 -0
  150. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/components/output/pcf.py +0 -0
  151. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/components/output/remote.py +0 -0
  152. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/components/sensor/__init__.py +0 -0
  153. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/components/sensor/virtual_energy.py +0 -0
  154. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/components/template/__init__.py +0 -0
  155. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/components/template/alarm_panel.py +0 -0
  156. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/components/template/gate_cover.py +0 -0
  157. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/components/template/thermostat.py +0 -0
  158. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/components/virtual_switch.py +0 -0
  159. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/const.py +0 -0
  160. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/__init__.py +0 -0
  161. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/atomic_file.py +0 -0
  162. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/auth/__init__.py +0 -0
  163. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/auth/cli.py +0 -0
  164. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/auth/hashing.py +0 -0
  165. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/auth/jwt_secret.py +0 -0
  166. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/auth/migration.py +0 -0
  167. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/cloud/__init__.py +0 -0
  168. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/cloud/data/__init__.py +0 -0
  169. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/cloud/data/docker-compose.yaml +0 -0
  170. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/cloud/data/init-certs-cloud.sh +0 -0
  171. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/cloud/registration.py +0 -0
  172. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/cloud/secrets.py +0 -0
  173. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/config/__init__.py +0 -0
  174. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/config/config_helper.py +0 -0
  175. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/config/input_bindings.py +0 -0
  176. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/config/migrations/__init__.py +0 -0
  177. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/config/migrations/v1_proxy_port.py +0 -0
  178. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/config/migrations/v2_transition.py +0 -0
  179. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/config/migrations/v4_wled_cache.py +0 -0
  180. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/config/migrations/v5_ina_screen.py +0 -0
  181. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/config/migrations/v6_input_keys.py +0 -0
  182. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/config/migrations/v7_mqtt_password_secret.py +0 -0
  183. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/config/package-lock.json +0 -0
  184. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/config/package.json +0 -0
  185. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/config/provenance.py +0 -0
  186. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/config/schema_converter.py +0 -0
  187. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/config/secret_masking.py +0 -0
  188. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/config/write_lock.py +0 -0
  189. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/config/yaml_compat.py +0 -0
  190. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/config/yaml_patch.py +0 -0
  191. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/config/yaml_util.py +0 -0
  192. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/containers.py +0 -0
  193. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/diagnostics/__init__.py +0 -0
  194. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/diagnostics/collect.py +0 -0
  195. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/discovery.py +0 -0
  196. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/events/__init__.py +0 -0
  197. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/events/bus.py +0 -0
  198. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/manager/__init__.py +0 -0
  199. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/manager/action_conditions.py +0 -0
  200. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/manager/canopen.py +0 -0
  201. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/manager/covers.py +0 -0
  202. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/manager/display.py +0 -0
  203. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/manager/inputs.py +0 -0
  204. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/manager/irrigation.py +0 -0
  205. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/manager/manager.py +0 -0
  206. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/manager/modbus.py +0 -0
  207. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/manager/outputs.py +0 -0
  208. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/manager/remote.py +0 -0
  209. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/manager/remote_input_registrar.py +0 -0
  210. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/manager/scheduler.py +0 -0
  211. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/manager/sensors.py +0 -0
  212. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/manager/sun.py +0 -0
  213. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/manager/templates/__init__.py +0 -0
  214. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/manager/templates/alarm.py +0 -0
  215. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/manager/templates/gate_cover.py +0 -0
  216. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/manager/templates/thermostat.py +0 -0
  217. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/manager/templates.py +0 -0
  218. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/manager/update.py +0 -0
  219. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/manager/virtual_switches.py +0 -0
  220. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/messaging/__init__.py +0 -0
  221. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/messaging/basic.py +0 -0
  222. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/messaging/basic_mqtt.py +0 -0
  223. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/messaging/composite.py +0 -0
  224. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/messaging/local.py +0 -0
  225. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/messaging/lox.py +0 -0
  226. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/messaging/mqtt.py +0 -0
  227. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/messaging/queue.py +0 -0
  228. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/net/__init__.py +0 -0
  229. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/net/discovery_guard.py +0 -0
  230. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/recovery.py +0 -0
  231. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/remote/__init__.py +0 -0
  232. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/remote/base.py +0 -0
  233. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/remote/can.py +0 -0
  234. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/remote/esphome.py +0 -0
  235. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/remote/mqtt.py +0 -0
  236. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/remote/wled.py +0 -0
  237. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/remote/wled_cache.py +0 -0
  238. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/security/__init__.py +0 -0
  239. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/security/certificate.py +0 -0
  240. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/security/framing.py +0 -0
  241. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/security/posture.py +0 -0
  242. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/sensor/__init__.py +0 -0
  243. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/sensor/base.py +0 -0
  244. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/sensor/sun.py +0 -0
  245. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/sensor/system.py +0 -0
  246. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/state/__init__.py +0 -0
  247. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/state/manager.py +0 -0
  248. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/system/__init__.py +0 -0
  249. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/system/host_data.py +0 -0
  250. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/system/monitor.py +0 -0
  251. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/system_ops.py +0 -0
  252. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/utils/__init__.py +0 -0
  253. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/utils/async_updater.py +0 -0
  254. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/utils/conditions.py +0 -0
  255. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/utils/filter.py +0 -0
  256. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/utils/font_util.py +0 -0
  257. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/utils/logger.py +0 -0
  258. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/utils/naming.py +0 -0
  259. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/utils/overlay.py +0 -0
  260. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/utils/sun.py +0 -0
  261. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/utils/timeperiod.py +0 -0
  262. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/core/utils/util.py +0 -0
  263. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/example_config/24x16/adc.yaml +0 -0
  264. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/example_config/24x16/binary_sensor.yaml +0 -0
  265. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/example_config/24x16/config.yaml +0 -0
  266. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/example_config/24x16/event.yaml +0 -0
  267. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/example_config/24x16/mqtt.yaml +0 -0
  268. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/example_config/24x16/output24x16A.yaml +0 -0
  269. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/example_config/32x10/adc.yaml +0 -0
  270. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/example_config/32x10/binary_sensor.yaml +0 -0
  271. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/example_config/32x10/config.yaml +0 -0
  272. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/example_config/32x10/event.yaml +0 -0
  273. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/example_config/32x10/mqtt.yaml +0 -0
  274. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/example_config/32x10/output32x10A.yaml +0 -0
  275. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/example_config/48x4/adc.yaml +0 -0
  276. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/example_config/48x4/binary_sensor.yaml +0 -0
  277. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/example_config/48x4/config.yaml +0 -0
  278. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/example_config/48x4/event.yaml +0 -0
  279. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/example_config/48x4/mqtt.yaml +0 -0
  280. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/example_config/48x4/output48x4A.yaml +0 -0
  281. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/example_config/__init__.py +0 -0
  282. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/example_config/can_master.yaml +0 -0
  283. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/example_config/can_slave.yaml +0 -0
  284. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/example_config/cover/adc.yaml +0 -0
  285. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/example_config/cover/binary_sensor.yaml +0 -0
  286. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/example_config/cover/config.yaml +0 -0
  287. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/example_config/cover/cover.yaml +0 -0
  288. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/example_config/cover/event.yaml +0 -0
  289. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/example_config/cover/mqtt.yaml +0 -0
  290. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/example_config/cover/outputCover.yaml +0 -0
  291. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/example_config/cover_mix/adc.yaml +0 -0
  292. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/example_config/cover_mix/binary_sensor.yaml +0 -0
  293. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/example_config/cover_mix/config.yaml +0 -0
  294. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/example_config/cover_mix/cover.yaml +0 -0
  295. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/example_config/cover_mix/event.yaml +0 -0
  296. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/example_config/cover_mix/mqtt.yaml +0 -0
  297. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/example_config/cover_mix/outputCoverMix.yaml +0 -0
  298. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/example_config/different_configs/adc.yaml +0 -0
  299. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/example_config/different_configs/all_binary_sensor.yaml +0 -0
  300. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/example_config/different_configs/binary_sensor.yaml +0 -0
  301. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/example_config/different_configs/binary_sensor_v_0_7.yaml +0 -0
  302. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/example_config/different_configs/config_24_16.yaml +0 -0
  303. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/example_config/different_configs/event_all.yaml +0 -0
  304. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/example_config/different_configs/event_v_0_7.yaml +0 -0
  305. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/example_config/different_configs/led32x4A.yaml +0 -0
  306. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/example_config/different_configs/output24x16A.yaml +0 -0
  307. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/example_config/different_configs/output24x16A_v0.3.yaml +0 -0
  308. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/example_config/different_configs/output32x10A.yaml +0 -0
  309. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/example_config/different_configs/output32x5A.yaml +0 -0
  310. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/exceptions.py +0 -0
  311. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/hardware/__init__.py +0 -0
  312. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/hardware/analog/__init__.py +0 -0
  313. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/hardware/analog/adc.py +0 -0
  314. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/hardware/can/__init__.py +0 -0
  315. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/hardware/can/bridge.py +0 -0
  316. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/hardware/can/client.py +0 -0
  317. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/hardware/can/interface.py +0 -0
  318. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/hardware/can/node.py +0 -0
  319. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/hardware/can/node_id.py +0 -0
  320. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/hardware/can/test_od.py +0 -0
  321. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/hardware/display/__init__.py +0 -0
  322. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/hardware/display/early_oled.py +0 -0
  323. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/hardware/display/fonts/danube__.ttf +0 -0
  324. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/hardware/display/oled.py +0 -0
  325. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/hardware/gpio/__init__.py +0 -0
  326. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/hardware/gpio/expanders/__init__.py +0 -0
  327. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/hardware/gpio/expanders/mcp23017.py +0 -0
  328. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/hardware/gpio/expanders/pca9685.py +0 -0
  329. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/hardware/gpio/expanders/pcf8575.py +0 -0
  330. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/hardware/gpio/input/__init__.py +0 -0
  331. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/hardware/gpio/input/base.py +0 -0
  332. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/hardware/gpio/input/manager.py +0 -0
  333. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/hardware/i2c/__init__.py +0 -0
  334. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/hardware/i2c/bus.py +0 -0
  335. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/hardware/i2c/ina219.py +0 -0
  336. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/hardware/i2c/ina219_driver.py +0 -0
  337. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/hardware/i2c/ina226.py +0 -0
  338. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/hardware/i2c/ina226_driver.py +0 -0
  339. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/hardware/i2c/mcp9808.py +0 -0
  340. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/hardware/i2c/pct2075.py +0 -0
  341. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/hardware/onewire/__init__.py +0 -0
  342. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/hardware/onewire/dallas.py +0 -0
  343. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/hardware/sensor/__init__.py +0 -0
  344. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/hardware/sensor/temperature/__init__.py +0 -0
  345. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/hardware/sensor/temperature/base.py +0 -0
  346. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/hardware/sensor/temperature/mcp9808.py +0 -0
  347. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/hardware/sensor/temperature/pct2075.py +0 -0
  348. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/hardware/udev_wait.py +0 -0
  349. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/integration/__init__.py +0 -0
  350. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/integration/interlock.py +0 -0
  351. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/integration/lox_template.py +0 -0
  352. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/__init__.py +0 -0
  353. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/actions.py +0 -0
  354. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/assets/MANIFEST.sha256 +0 -0
  355. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/assets/apt/52boneio-periodic +0 -0
  356. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/assets/apt/52boneio-unattended +0 -0
  357. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/assets/docker/daemon.json +0 -0
  358. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/assets/docker/nodered/caddy/502.html +0 -0
  359. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/assets/docker/nodered/caddy/init-certs.sh +0 -0
  360. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/assets/docker/nodered/docker-compose-cloud.yaml +0 -0
  361. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/assets/docker/nodered/docker-compose.yaml +0 -0
  362. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/assets/docker/nodered/node-red/settings.js +0 -0
  363. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/assets/helpers/boneio-containers +0 -0
  364. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/assets/helpers/boneio-helpers-heal +0 -0
  365. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/assets/helpers/boneio-migrate-v2 +0 -0
  366. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/assets/helpers/boneio-system +0 -0
  367. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/assets/issue.d/10-boneio.issue +0 -0
  368. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/assets/journald/boneio-console.conf +0 -0
  369. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/assets/journald/journald.conf +0 -0
  370. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/assets/kernel/postinst-boneio-overlay +0 -0
  371. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/assets/migrations-recovery.pem +0 -0
  372. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/assets/migrations.pem +0 -0
  373. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/assets/modules-load.d/onewire.conf +0 -0
  374. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/assets/mosquitto/boneio.conf +0 -0
  375. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/assets/sshd/10-boneio-hardening.conf +0 -0
  376. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/assets/sudoers/boneio +0 -0
  377. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/assets/sudoers/boneio-helpers +0 -0
  378. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/assets/sudoers/boneio-timedatectl +0 -0
  379. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/assets/systemd/boneio-dpkg-recover.service +0 -0
  380. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/assets/systemd/boneio-helpers-heal.service +0 -0
  381. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/assets/systemd/boneio-oled-boot.service +0 -0
  382. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/assets/systemd/boneio-oled-shutdown.service +0 -0
  383. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/assets/systemd/boneio.service +0 -0
  384. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/assets/systemd/dropins/apt-daily-priority.conf +0 -0
  385. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/assets/systemd/dropins/avahi-daemon-defer.conf +0 -0
  386. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/assets/systemd/dropins/bb-usb-gadgets-defer.conf +0 -0
  387. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/assets/systemd/dropins/mosquitto-priority.conf +0 -0
  388. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/assets/systemd/dropins/timer-no-persistent.conf +0 -0
  389. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/assets/systemd/dropins/user-manager-defer.conf +0 -0
  390. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/assets/systemd/linger-marker +0 -0
  391. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/assets/systemd/set-hostname-once.service +0 -0
  392. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/assets/usr-local-bin/set-hostname-once.sh +0 -0
  393. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/assets/usr-sbin/oled_boot_splash.py +0 -0
  394. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/assets/usr-sbin/oled_boot_splash.sh +0 -0
  395. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/assets/usr-sbin/oled_msg.py +0 -0
  396. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/assets/usr-sbin/oled_msg.sh +0 -0
  397. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/assets/wheels/pyyaml-6.0.3-cp313-cp313-linux_armv7l.whl +0 -0
  398. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/bootstrap/boneio-migrate +0 -0
  399. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/bootstrap/install-helper.sh +0 -0
  400. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/bootstrap/sudoers-migrate +0 -0
  401. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.3.0.json +0 -0
  402. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.3.0.sig +0 -0
  403. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.3.1.json +0 -0
  404. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.3.1.sig +0 -0
  405. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.3.2.json +0 -0
  406. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.3.2.sig +0 -0
  407. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.4.0.json +0 -0
  408. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.4.0.sig +0 -0
  409. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.4.3.json +0 -0
  410. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.4.3.sig +0 -0
  411. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.4.4.json +0 -0
  412. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.4.4.sig +0 -0
  413. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.5.0.json +0 -0
  414. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.5.0.sig +0 -0
  415. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.5.1.json +0 -0
  416. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.5.1.sig +0 -0
  417. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.5.10.json +0 -0
  418. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.5.10.sig +0 -0
  419. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.5.11.json +0 -0
  420. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.5.11.sig +0 -0
  421. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.5.12.json +0 -0
  422. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.5.12.sig +0 -0
  423. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.5.13.json +0 -0
  424. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.5.13.sig +0 -0
  425. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.5.14.json +0 -0
  426. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.5.14.sig +0 -0
  427. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.5.15.json +0 -0
  428. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.5.15.sig +0 -0
  429. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.5.16.json +0 -0
  430. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.5.16.sig +0 -0
  431. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.5.17.json +0 -0
  432. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.5.17.sig +0 -0
  433. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.5.18.json +0 -0
  434. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.5.18.sig +0 -0
  435. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.5.2.json +0 -0
  436. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.5.2.sig +0 -0
  437. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.5.3.json +0 -0
  438. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.5.3.sig +0 -0
  439. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.5.4.json +0 -0
  440. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.5.4.sig +0 -0
  441. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.5.5.json +0 -0
  442. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.5.5.sig +0 -0
  443. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.5.6.json +0 -0
  444. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.5.6.sig +0 -0
  445. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.5.7.json +0 -0
  446. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.5.7.sig +0 -0
  447. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.5.8.json +0 -0
  448. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.5.8.sig +0 -0
  449. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.5.9.json +0 -0
  450. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.5.9.sig +0 -0
  451. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.6.0.json +0 -0
  452. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.6.0.sig +0 -0
  453. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.6.1.json +0 -0
  454. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.6.1.sig +0 -0
  455. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.6.10.json +0 -0
  456. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.6.10.sig +0 -0
  457. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.6.11.json +0 -0
  458. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.6.11.sig +0 -0
  459. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.6.12.json +0 -0
  460. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.6.12.sig +0 -0
  461. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.6.13.json +0 -0
  462. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.6.13.sig +0 -0
  463. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.6.14.json +0 -0
  464. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.6.14.sig +0 -0
  465. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.6.15.json +0 -0
  466. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.6.15.sig +0 -0
  467. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.6.16.json +0 -0
  468. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.6.16.sig +0 -0
  469. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.6.17.json +0 -0
  470. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.6.17.sig +0 -0
  471. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.6.18.json +0 -0
  472. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.6.18.sig +0 -0
  473. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.6.19.json +0 -0
  474. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.6.19.sig +0 -0
  475. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.6.2.json +0 -0
  476. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.6.2.sig +0 -0
  477. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.6.20.json +0 -0
  478. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.6.20.sig +0 -0
  479. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.6.21.json +0 -0
  480. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.6.21.sig +0 -0
  481. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.6.22.json +0 -0
  482. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.6.22.sig +0 -0
  483. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.6.23.json +0 -0
  484. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.6.23.sig +0 -0
  485. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.6.24.json +0 -0
  486. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.6.24.sig +0 -0
  487. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.6.25.json +0 -0
  488. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.6.25.sig +0 -0
  489. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.6.26.json +0 -0
  490. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.6.26.sig +0 -0
  491. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.6.27.json +0 -0
  492. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.6.27.sig +0 -0
  493. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.6.3.json +0 -0
  494. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.6.3.sig +0 -0
  495. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.6.4.json +0 -0
  496. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.6.4.sig +0 -0
  497. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.6.5.json +0 -0
  498. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.6.5.sig +0 -0
  499. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.6.6.json +0 -0
  500. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.6.6.sig +0 -0
  501. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.6.7.json +0 -0
  502. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.6.7.sig +0 -0
  503. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.6.8.json +0 -0
  504. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.6.8.sig +0 -0
  505. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.6.9.json +0 -0
  506. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/plans/1.6.9.sig +0 -0
  507. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/versions/__init__.py +0 -0
  508. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/versions/v1_3_0_baseline.py +0 -0
  509. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/versions/v1_3_1_fix_oled_boot.py +0 -0
  510. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/versions/v1_3_2_cleanup_can_sudoers.py +0 -0
  511. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/versions/v1_4_0_fix_mqtt_sudoers.py +0 -0
  512. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/versions/v1_4_3_oled_shutdown.py +0 -0
  513. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/versions/v1_4_4_caddy.py +0 -0
  514. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/versions/v1_5_0_fix_oled_fifo_permissions.py +0 -0
  515. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/versions/v1_5_10_disable_console_setup.py +0 -0
  516. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/versions/v1_5_11_timer_catchup.py +0 -0
  517. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/versions/v1_5_12_oled_splash_off_critical_path.py +0 -0
  518. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/versions/v1_5_13_mosquitto_priority.py +0 -0
  519. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/versions/v1_5_14_journal_apparent_size.py +0 -0
  520. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/versions/v1_5_15_prune_orphan_journals.py +0 -0
  521. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/versions/v1_5_16_login_linger.py +0 -0
  522. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/versions/v1_5_17_defer_user_manager.py +0 -0
  523. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/versions/v1_5_18_fix_hostname_once.py +0 -0
  524. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/versions/v1_5_1_ufw_lox_udp.py +0 -0
  525. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/versions/v1_5_2_libyaml.py +0 -0
  526. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/versions/v1_5_3_libyaml_retry.py +0 -0
  527. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/versions/v1_5_4_onewire_modules.py +0 -0
  528. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/versions/v1_5_5_overlay_kernel_hook.py +0 -0
  529. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/versions/v1_5_6_boot_service_order.py +0 -0
  530. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/versions/v1_5_7_journald_limits.py +0 -0
  531. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/versions/v1_5_8_apparmor_prune.py +0 -0
  532. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/versions/v1_5_9_defer_nonessential.py +0 -0
  533. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/versions/v1_6_0_nodered_admin_auth.py +0 -0
  534. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/versions/v1_6_10_narrow_sudo_rules.py +0 -0
  535. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/versions/v1_6_11_drop_docker_group.py +0 -0
  536. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/versions/v1_6_12_console_shows_ip.py +0 -0
  537. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/versions/v1_6_13_custom_certificate.py +0 -0
  538. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/versions/v1_6_14_certificate_lifetime.py +0 -0
  539. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/versions/v1_6_15_web_port_reaches_caddy.py +0 -0
  540. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/versions/v1_6_16_release_floor_ordering.py +0 -0
  541. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/versions/v1_6_17_service_password.py +0 -0
  542. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/versions/v1_6_18_os_updates.py +0 -0
  543. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/versions/v1_6_19_helper_apt_purge.py +0 -0
  544. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/versions/v1_6_1_mosquitto_passwd_perms.py +0 -0
  545. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/versions/v1_6_20_drop_packagekit.py +0 -0
  546. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/versions/v1_6_21_caddy_pinned.py +0 -0
  547. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/versions/v1_6_22_security_autoupdates.py +0 -0
  548. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/versions/v1_6_23_helper_fstab_options.py +0 -0
  549. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/versions/v1_6_24_boot_partition_nofail.py +0 -0
  550. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/versions/v1_6_25_journal_to_serial_console.py +0 -0
  551. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/versions/v1_6_26_kernel_check_old_images.py +0 -0
  552. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/versions/v1_6_27_startup_overlay_repair.py +0 -0
  553. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/versions/v1_6_2_drop_build_sudo_rule.py +0 -0
  554. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/versions/v1_6_3_firewall_rule_gaps.py +0 -0
  555. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/versions/v1_6_4_ssh_login_hardening.py +0 -0
  556. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/versions/v1_6_5_trust_transition.py +0 -0
  557. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/versions/v1_6_6_retire_legacy_helper.py +0 -0
  558. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/versions/v1_6_7_timedatectl_sudoers.py +0 -0
  559. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/versions/v1_6_8_system_helper.py +0 -0
  560. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/migrations/versions/v1_6_9_ntp_servers.py +0 -0
  561. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/modbus/__init__.py +0 -0
  562. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/modbus/cli.py +0 -0
  563. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/modbus/client.py +0 -0
  564. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/modbus/coordinator.py +0 -0
  565. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/modbus/devices/__init__.py +0 -0
  566. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/modbus/devices/energy_meters/dts1964_3f.json +0 -0
  567. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/modbus/devices/energy_meters/le-03mw.json +0 -0
  568. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/modbus/devices/energy_meters/le-03mwct.json +0 -0
  569. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/modbus/devices/energy_meters/orno-or-we-517.json +0 -0
  570. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/modbus/devices/energy_meters/sdm120.json +0 -0
  571. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/modbus/devices/energy_meters/sdm630.json +0 -0
  572. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/modbus/devices/energy_meters/socomec_e03.json +0 -0
  573. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/modbus/devices/energy_meters/socomec_e23.json +0 -0
  574. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/modbus/devices/hvac/defro-drx.json +0 -0
  575. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/modbus/devices/hvac/eht-topventil-plus.json +0 -0
  576. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/modbus/devices/hvac/fujitsu-ac.json +0 -0
  577. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/modbus/devices/hvac/thessla.json +0 -0
  578. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/modbus/devices/hvac/ventclear.json +0 -0
  579. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/modbus/devices/hvac/wanas415.json +0 -0
  580. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/modbus/devices/inverters/sofar.json +0 -0
  581. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/modbus/devices/other/esp32_relay_x4_modbus.json +0 -0
  582. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/modbus/devices/other/n4dsc08.json +0 -0
  583. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/modbus/devices/other/r4dcb08.json +0 -0
  584. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/modbus/devices/sensors/boneio-edge-temp.json +0 -0
  585. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/modbus/devices/sensors/cwt.json +0 -0
  586. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/modbus/devices/sensors/dyp-a12-ultrasonic.json +0 -0
  587. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/modbus/devices/sensors/gdfs.json +0 -0
  588. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/modbus/devices/sensors/gdfx.json +0 -0
  589. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/modbus/devices/sensors/liquid-sensor.json +0 -0
  590. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/modbus/devices/sensors/pt100.json +0 -0
  591. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/modbus/devices/sensors/qdw90a.json +0 -0
  592. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/modbus/devices/sensors/sht20.json +0 -0
  593. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/modbus/devices/sensors/sht30.json +0 -0
  594. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/modbus/entities/__init__.py +0 -0
  595. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/modbus/entities/base.py +0 -0
  596. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/modbus/entities/derived/__init__.py +0 -0
  597. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/modbus/entities/derived/numeric.py +0 -0
  598. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/modbus/entities/derived/select.py +0 -0
  599. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/modbus/entities/derived/switch.py +0 -0
  600. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/modbus/entities/derived/text.py +0 -0
  601. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/modbus/entities/sensor/__init__.py +0 -0
  602. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/modbus/entities/sensor/binary.py +0 -0
  603. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/modbus/entities/sensor/numeric.py +0 -0
  604. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/modbus/entities/sensor/text.py +0 -0
  605. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/modbus/entities/writeable/__init__.py +0 -0
  606. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/modbus/entities/writeable/binary.py +0 -0
  607. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/modbus/entities/writeable/numeric.py +0 -0
  608. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/modbus/mock_coordinator.py +0 -0
  609. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/modbus/utils.py +0 -0
  610. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/models/__init__.py +0 -0
  611. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/models/actions.py +0 -0
  612. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/models/events.py +0 -0
  613. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/models/files.py +0 -0
  614. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/models/logs.py +0 -0
  615. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/models/mqtt.py +0 -0
  616. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/models/state.py +0 -0
  617. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/runner.py +0 -0
  618. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/schema/actions.yaml +0 -0
  619. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/schema/actions_sensor.yaml +0 -0
  620. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/schema/actions_switch.yaml +0 -0
  621. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/schema/condition.yaml +0 -0
  622. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/schema/filters.yaml +0 -0
  623. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/schema/filters_adc.yaml +0 -0
  624. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/schema/id.yaml +0 -0
  625. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/schema/remote_devices.yaml +0 -0
  626. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/schema/remote_inputs.yaml +0 -0
  627. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/schema/remote_outputs.yaml +0 -0
  628. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/schema/schema.yaml +0 -0
  629. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/schema/temp_unit.yaml +0 -0
  630. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/schema/update_interval.yaml +0 -0
  631. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/action_validation.py +0 -0
  632. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/dashboard_cards.py +0 -0
  633. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/frontend-dist/assets/NodeRedView-CtAdqW4R.js +0 -0
  634. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/frontend-dist/assets/NumericInput-DNZTgusN.js +0 -0
  635. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/frontend-dist/assets/Sparkline-DbzEbKjI.js +0 -0
  636. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/frontend-dist/assets/ViewToggle-B-Y9KKFZ.js +0 -0
  637. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/frontend-dist/assets/basePath-CxHj-SSK.js +0 -0
  638. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/frontend-dist/assets/clipboard-CCtx29e-.js +0 -0
  639. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/frontend-dist/assets/codicon-ngg6Pgfi.ttf +0 -0
  640. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/frontend-dist/assets/dialog-Dyh6AFFV.js +0 -0
  641. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/frontend-dist/assets/editor.worker-O-CH8JUO.js +0 -0
  642. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/frontend-dist/assets/fa-BhM0fApf.js +0 -0
  643. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/frontend-dist/assets/formatters-Cc0QIRxb.js +0 -0
  644. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/frontend-dist/assets/gi-BPK6jryY.js +0 -0
  645. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/frontend-dist/assets/index-COqAjAHR.css +0 -0
  646. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/frontend-dist/assets/monaco-Br_kD0ds.css +0 -0
  647. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/frontend-dist/assets/rolldown-runtime-hePW80VL.js +0 -0
  648. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/frontend-dist/assets/select-yXAsrSOf.js +0 -0
  649. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/frontend-dist/assets/utils-DOQQTBMN.js +0 -0
  650. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/frontend-dist/assets/workbox-window.prod.es5-Bd17z0YL.js +0 -0
  651. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/frontend-dist/assets/yaml.worker-CeS-z5zL.js +0 -0
  652. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/frontend-dist/boneio-192.png +0 -0
  653. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/frontend-dist/boneio-512.png +0 -0
  654. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/frontend-dist/boneio.svg +0 -0
  655. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/frontend-dist/boneio_fav.svg +0 -0
  656. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/frontend-dist/schema/adc.schema.json +0 -0
  657. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/frontend-dist/schema/areas.schema.json +0 -0
  658. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/frontend-dist/schema/binary_sensor.schema.json +0 -0
  659. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/frontend-dist/schema/boneio.schema.json +0 -0
  660. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/frontend-dist/schema/can.schema.json +0 -0
  661. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/frontend-dist/schema/config.schema.json +0 -0
  662. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/frontend-dist/schema/cover.schema.json +0 -0
  663. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/frontend-dist/schema/dallas.schema.json +0 -0
  664. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/frontend-dist/schema/ds2482.schema.json +0 -0
  665. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/frontend-dist/schema/event.schema.json +0 -0
  666. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/frontend-dist/schema/ina219.schema.json +0 -0
  667. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/frontend-dist/schema/ina226.schema.json +0 -0
  668. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/frontend-dist/schema/irrigation.schema.json +0 -0
  669. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/frontend-dist/schema/lm75.schema.json +0 -0
  670. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/frontend-dist/schema/location.schema.json +0 -0
  671. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/frontend-dist/schema/logger.schema.json +0 -0
  672. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/frontend-dist/schema/lox_udp.schema.json +0 -0
  673. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/frontend-dist/schema/mcp23017.schema.json +0 -0
  674. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/frontend-dist/schema/mcp9808.schema.json +0 -0
  675. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/frontend-dist/schema/modbus.schema.json +0 -0
  676. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/frontend-dist/schema/modbus_devices.schema.json +0 -0
  677. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/frontend-dist/schema/mqtt.schema.json +0 -0
  678. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/frontend-dist/schema/oled.schema.json +0 -0
  679. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/frontend-dist/schema/osdp.schema.json +0 -0
  680. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/frontend-dist/schema/output.schema.json +0 -0
  681. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/frontend-dist/schema/output_group.schema.json +0 -0
  682. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/frontend-dist/schema/pca9685.schema.json +0 -0
  683. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/frontend-dist/schema/pcf8575.schema.json +0 -0
  684. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/frontend-dist/schema/remote_devices.schema.json +0 -0
  685. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/frontend-dist/schema/remote_inputs.schema.json +0 -0
  686. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/frontend-dist/schema/remote_outputs.schema.json +0 -0
  687. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/frontend-dist/schema/schedule.schema.json +0 -0
  688. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/frontend-dist/schema/sensor.schema.json +0 -0
  689. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/frontend-dist/schema/template.schema.json +0 -0
  690. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/frontend-dist/schema/virtual_energy_sensor.schema.json +0 -0
  691. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/frontend-dist/schema/virtual_switch.schema.json +0 -0
  692. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/frontend-dist/schema/web.schema.json +0 -0
  693. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/frontend-dist/workbox-7e79c025.js +0 -0
  694. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/hvac_svg_templates.py +0 -0
  695. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/middleware/__init__.py +0 -0
  696. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/middleware/csrf.py +0 -0
  697. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/modbus_card_templates.py +0 -0
  698. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/rate_limit.py +0 -0
  699. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/recovery/__init__.py +0 -0
  700. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/recovery/server.py +0 -0
  701. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/recovery/static/index.html +0 -0
  702. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/recovery/static/recovery.css +0 -0
  703. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/recovery/static/recovery.js +0 -0
  704. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/routes/__init__.py +0 -0
  705. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/routes/can.py +0 -0
  706. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/routes/config.py +0 -0
  707. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/routes/config_actions.py +0 -0
  708. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/routes/config_backups.py +0 -0
  709. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/routes/config_core.py +0 -0
  710. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/routes/config_discovery.py +0 -0
  711. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/routes/config_files.py +0 -0
  712. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/routes/covers.py +0 -0
  713. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/routes/dashboard.py +0 -0
  714. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/routes/dev_fake_device.py +0 -0
  715. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/routes/diagnostics.py +0 -0
  716. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/routes/irrigation.py +0 -0
  717. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/routes/migrations.py +0 -0
  718. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/routes/modbus.py +0 -0
  719. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/routes/mqtt_reference.py +0 -0
  720. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/routes/nodered.py +0 -0
  721. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/routes/os_update.py +0 -0
  722. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/routes/outputs.py +0 -0
  723. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/routes/remote_devices.py +0 -0
  724. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/routes/schedule.py +0 -0
  725. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/routes/security.py +0 -0
  726. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/routes/sensors.py +0 -0
  727. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/routes/sun.py +0 -0
  728. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/routes/system.py +0 -0
  729. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/routes/templates.py +0 -0
  730. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/routes/timezone_sudoers.py +0 -0
  731. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/routes/tools.py +0 -0
  732. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/routes/update.py +0 -0
  733. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/schema/adc.schema.json +0 -0
  734. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/schema/areas.schema.json +0 -0
  735. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/schema/binary_sensor.schema.json +0 -0
  736. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/schema/boneio.schema.json +0 -0
  737. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/schema/can.schema.json +0 -0
  738. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/schema/config.schema.json +0 -0
  739. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/schema/cover.schema.json +0 -0
  740. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/schema/dallas.schema.json +0 -0
  741. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/schema/ds2482.schema.json +0 -0
  742. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/schema/event.schema.json +0 -0
  743. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/schema/ina219.schema.json +0 -0
  744. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/schema/ina226.schema.json +0 -0
  745. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/schema/irrigation.schema.json +0 -0
  746. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/schema/lm75.schema.json +0 -0
  747. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/schema/location.schema.json +0 -0
  748. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/schema/logger.schema.json +0 -0
  749. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/schema/lox_udp.schema.json +0 -0
  750. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/schema/mcp23017.schema.json +0 -0
  751. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/schema/mcp9808.schema.json +0 -0
  752. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/schema/modbus.schema.json +0 -0
  753. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/schema/modbus_devices.schema.json +0 -0
  754. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/schema/mqtt.schema.json +0 -0
  755. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/schema/oled.schema.json +0 -0
  756. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/schema/osdp.schema.json +0 -0
  757. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/schema/output.schema.json +0 -0
  758. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/schema/output_group.schema.json +0 -0
  759. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/schema/pca9685.schema.json +0 -0
  760. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/schema/pcf8575.schema.json +0 -0
  761. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/schema/remote_devices.schema.json +0 -0
  762. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/schema/remote_inputs.schema.json +0 -0
  763. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/schema/remote_outputs.schema.json +0 -0
  764. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/schema/schedule.schema.json +0 -0
  765. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/schema/sensor.schema.json +0 -0
  766. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/schema/template.schema.json +0 -0
  767. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/schema/virtual_energy_sensor.schema.json +0 -0
  768. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/schema/virtual_switch.schema.json +0 -0
  769. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/schema/web.schema.json +0 -0
  770. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/security_headers.py +0 -0
  771. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/services/__init__.py +0 -0
  772. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/services/logs.py +0 -0
  773. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/sudo_rate_limiter.py +0 -0
  774. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio/webui/web_server.py +0 -0
  775. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio.egg-info/dependency_links.txt +0 -0
  776. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio.egg-info/entry_points.txt +0 -0
  777. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio.egg-info/requires.txt +0 -0
  778. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/boneio.egg-info/top_level.txt +0 -0
  779. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/pyproject.toml +0 -0
  780. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/setup.cfg +0 -0
  781. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/setup.py +0 -0
  782. {boneio-1.6.0.dev22 → boneio-1.6.0.dev23}/tests/test_py313_compatibility.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: boneio
3
- Version: 1.6.0.dev22
3
+ Version: 1.6.0.dev23
4
4
  Summary: Python App for BoneIO
5
5
  Author-email: Paweł Szafer <pszafer@gmail.com>
6
6
  License: GNU General Public License v3.0
@@ -2,7 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from dataclasses import dataclass
5
+ from dataclasses import dataclass, field
6
6
  from datetime import UTC, datetime
7
7
  from enum import StrEnum
8
8
 
@@ -37,6 +37,18 @@ class User:
37
37
  role: Role = Role.ADMIN
38
38
  created_at: str = ""
39
39
  updated_at: str = ""
40
+ # Bumped whenever the password changes. Login tokens carry the value they
41
+ # were issued under, and one that no longer matches is refused, which is
42
+ # how a password change signs every other session out.
43
+ session_version: int = 0
44
+ # Single browser sessions cut off after too many wrong passwords, as
45
+ # session id → the unix time its token expires, after which the entry is
46
+ # pointless and gets pruned.
47
+ revoked_sessions: dict[str, int] = field(default_factory=dict)
48
+ # Wrong passwords typed per session while it was signed in, as session id
49
+ # → {"count": n, "until": token expiry}. Kept here, not in memory, so a
50
+ # restart does not hand a guessing session a fresh allowance.
51
+ session_failures: dict[str, dict] = field(default_factory=dict)
40
52
 
41
53
  def to_dict(self) -> dict:
42
54
  """Serialise for ``users.json``.
@@ -50,6 +62,9 @@ class User:
50
62
  "role": str(self.role),
51
63
  "created_at": self.created_at,
52
64
  "updated_at": self.updated_at,
65
+ "session_version": self.session_version,
66
+ "revoked_sessions": dict(self.revoked_sessions),
67
+ "session_failures": {k: dict(v) for k, v in self.session_failures.items()},
53
68
  }
54
69
 
55
70
  @classmethod
@@ -79,12 +94,22 @@ class User:
79
94
  except ValueError:
80
95
  role = Role.VIEWER
81
96
 
97
+ # Absent in every users.json written before 1.6.0.dev23, and those
98
+ # accounts' tokens carry no version either: both read as 0.
99
+ try:
100
+ session_version = int(raw.get("session_version", 0))
101
+ except (TypeError, ValueError):
102
+ session_version = 0
103
+
82
104
  return cls(
105
+ revoked_sessions=_int_map(raw.get("revoked_sessions")),
106
+ session_failures=_failure_map(raw.get("session_failures")),
83
107
  username=username,
84
108
  password_hash=password_hash,
85
109
  role=role,
86
110
  created_at=str(raw.get("created_at", "")),
87
111
  updated_at=str(raw.get("updated_at", "")),
112
+ session_version=session_version,
88
113
  )
89
114
 
90
115
  def to_public_dict(self) -> dict:
@@ -99,3 +124,43 @@ class User:
99
124
  "created_at": self.created_at,
100
125
  "updated_at": self.updated_at,
101
126
  }
127
+
128
+
129
+ def _int_map(raw) -> dict[str, int]:
130
+ """Read a ``{str: int}`` map from users.json, dropping what does not fit.
131
+
132
+ Args:
133
+ raw: Whatever the file holds under the key.
134
+
135
+ Returns:
136
+ The well-formed entries.
137
+ """
138
+ if not isinstance(raw, dict):
139
+ return {}
140
+ out: dict[str, int] = {}
141
+ for key, value in raw.items():
142
+ if isinstance(key, str) and isinstance(value, int) and not isinstance(value, bool):
143
+ out[key] = value
144
+ return out
145
+
146
+
147
+ def _failure_map(raw) -> dict[str, dict]:
148
+ """Read the per-session failure counts, dropping what does not fit.
149
+
150
+ Args:
151
+ raw: Whatever the file holds under the key.
152
+
153
+ Returns:
154
+ ``{session_id: {"count": int, "until": int}}`` for the entries that
155
+ have both.
156
+ """
157
+ if not isinstance(raw, dict):
158
+ return {}
159
+ out: dict[str, dict] = {}
160
+ for key, value in raw.items():
161
+ if not isinstance(key, str) or not isinstance(value, dict):
162
+ continue
163
+ count, until = value.get("count"), value.get("until")
164
+ if all(isinstance(v, int) and not isinstance(v, bool) for v in (count, until)):
165
+ out[key] = {"count": count, "until": until}
166
+ return out
@@ -18,6 +18,7 @@ import logging
18
18
  import os
19
19
  import tempfile
20
20
  import threading
21
+ import time
21
22
  from pathlib import Path
22
23
 
23
24
  from boneio.core.auth.hashing import hash_password, verify_password
@@ -390,7 +391,11 @@ class UserStore:
390
391
  return user
391
392
 
392
393
  def set_password(self, username: str, password: str) -> User:
393
- """Replace an account's password.
394
+ """Replace an account's password and revoke its sessions.
395
+
396
+ Every token issued before the change stops being honoured; the caller
397
+ that made the change has to be handed a fresh one if it is to stay
398
+ signed in.
394
399
 
395
400
  Args:
396
401
  username: Account to change.
@@ -413,11 +418,79 @@ class UserStore:
413
418
  raise UserStoreError(f"No such account: {username}")
414
419
  user.password_hash = hash_password(password)
415
420
  user.updated_at = utc_now()
421
+ # Signs out every session opened with the old password, the
422
+ # stolen one being the point.
423
+ user.session_version += 1
416
424
  self._save()
417
425
 
418
426
  _LOGGER.info("Password changed for account '%s'", user.username)
419
427
  return user
420
428
 
429
+ def record_session_failure(self, username: str, session_id: str, until: int) -> int:
430
+ """Count a wrong password typed by one signed-in session.
431
+
432
+ Cumulative for the life of the session, not a sliding window: a window
433
+ lets a patient guesser stay under it forever, a few tries at a time.
434
+ The count goes when the password is typed right or the token expires.
435
+
436
+ Args:
437
+ username: Account the session belongs to.
438
+ session_id: The session (see middleware.auth.session_id_of).
439
+ until: Unix time the session's token expires.
440
+
441
+ Returns:
442
+ The session's count after this one, or 0 if the account is gone.
443
+ """
444
+ self._ensure_loaded()
445
+ key = normalize_username(username)
446
+ with self._lock:
447
+ user = self._users.get(key)
448
+ if user is None:
449
+ return 0
450
+ _prune(user)
451
+ entry = user.session_failures.get(session_id, {"count": 0, "until": until})
452
+ entry = {"count": entry["count"] + 1, "until": max(entry["until"], until)}
453
+ user.session_failures[session_id] = entry
454
+ self._save()
455
+ return entry["count"]
456
+
457
+ def clear_session_failures(self, username: str, session_id: str) -> None:
458
+ """Forget a session's wrong passwords once it has typed the right one.
459
+
460
+ Args:
461
+ username: Account the session belongs to.
462
+ session_id: The session.
463
+ """
464
+ self._ensure_loaded()
465
+ key = normalize_username(username)
466
+ with self._lock:
467
+ user = self._users.get(key)
468
+ if user is None or session_id not in user.session_failures:
469
+ return
470
+ del user.session_failures[session_id]
471
+ self._save()
472
+
473
+ def revoke_session(self, username: str, session_id: str, until: int) -> None:
474
+ """Sign one session out, leaving the account's other sessions alone.
475
+
476
+ Args:
477
+ username: Account the session belongs to.
478
+ session_id: The session to refuse from now on.
479
+ until: Unix time its token expires; the entry is useless after.
480
+ """
481
+ self._ensure_loaded()
482
+ key = normalize_username(username)
483
+ with self._lock:
484
+ user = self._users.get(key)
485
+ if user is None:
486
+ return
487
+ _prune(user)
488
+ user.revoked_sessions[session_id] = until
489
+ user.session_failures.pop(session_id, None)
490
+ self._save()
491
+
492
+ _LOGGER.warning("Signed out one session of '%s'", user.username)
493
+
421
494
  def set_role(self, username: str, role: Role) -> User:
422
495
  """Change an account's role.
423
496
 
@@ -520,3 +593,16 @@ def dummy_hash() -> str:
520
593
  if _DUMMY_HASH is None:
521
594
  _DUMMY_HASH = hash_password("boneio-nonexistent-account-placeholder")
522
595
  return _DUMMY_HASH
596
+
597
+
598
+ def _prune(user: User) -> None:
599
+ """Drop session entries whose tokens have expired anyway.
600
+
601
+ Args:
602
+ user: Account to tidy, modified in place.
603
+ """
604
+ now = int(time.time())
605
+ user.revoked_sessions = {k: v for k, v in user.revoked_sessions.items() if v > now}
606
+ user.session_failures = {
607
+ k: v for k, v in user.session_failures.items() if v["until"] > now
608
+ }
@@ -164,8 +164,36 @@ class SecurityAlertPublisher:
164
164
  # Still publish: the entity may already exist from a previous run,
165
165
  # and a stale retained state is worse than a corrected one.
166
166
 
167
+ try:
168
+ from boneio.integration.homeassistant import ha_security_event_message
169
+
170
+ self._manager.publish_ha_discovery(
171
+ id="security_event",
172
+ ha_type="event",
173
+ payload=ha_security_event_message(
174
+ config_helper=self._manager._config_helper
175
+ ),
176
+ )
177
+ except Exception as err: # noqa: BLE001 - discovery must not stop startup
178
+ _LOGGER.warning("Could not register the security events entity: %s", err)
179
+
167
180
  await self.publish_state()
168
181
 
182
+ def publish_event(self, payload: dict) -> None:
183
+ """Fire the Security events entity.
184
+
185
+ Not retained: an event is something that happened, and a retained one
186
+ would fire again every time Home Assistant reconnects.
187
+
188
+ Args:
189
+ payload: ``{"event_type": ..., ...}`` from boneio.webui.security_events.
190
+ """
191
+ self._manager.send_message(
192
+ topic=f"{self._manager._topic_prefix}/security/event",
193
+ payload=json.dumps(payload),
194
+ retain=False,
195
+ )
196
+
169
197
  async def publish_state(self) -> None:
170
198
  """Publish the current posture.
171
199
 
@@ -1506,6 +1506,40 @@ def ha_security_alert_availability_message(
1506
1506
  return msg
1507
1507
 
1508
1508
 
1509
+ def ha_security_event_message(
1510
+ config_helper: ConfigHelper,
1511
+ **kwargs,
1512
+ ) -> HomeAssistantDiscoveryMessage:
1513
+ """Create the Security events entity (diagnostic) for HA.
1514
+
1515
+ An ``event`` entity, like a button's: it fires when somebody guesses a
1516
+ password, so an automation can turn that into a notification. The types
1517
+ are the ones boneio.webui.security_events sends, and HA refuses any other.
1518
+
1519
+ Args:
1520
+ config_helper: ConfigHelper instance.
1521
+ **kwargs: Additional fields forwarded to ``ha_availabilty_message``.
1522
+
1523
+ Returns:
1524
+ HA discovery message dict for the event entity.
1525
+ """
1526
+ from boneio.webui.security_events import EVENT_TYPES
1527
+
1528
+ msg = ha_availabilty_message(
1529
+ id="security_event",
1530
+ name="Security events",
1531
+ entity_type="event",
1532
+ config_helper=config_helper,
1533
+ device_type="update",
1534
+ **kwargs,
1535
+ )
1536
+ msg["state_topic"] = f"{config_helper.topic_prefix}/security/event"
1537
+ msg["event_types"] = list(EVENT_TYPES)
1538
+ msg["icon"] = "mdi:shield-key"
1539
+ msg["entity_category"] = "diagnostic"
1540
+ return msg
1541
+
1542
+
1509
1543
  def ha_climate_availability_message(
1510
1544
  id: str,
1511
1545
  name: str,
@@ -1 +1 @@
1
- {"plans":{"1.3.0":"645ac6bdda8dc0a73c219aa3684a29df4bdd4032aad97a833b259de489b2ce32","1.3.1":"580381a4f6f40fc1bd4e903e591ad0d5c1db27daaccafc6f79dabf8c3b84259a","1.3.2":"7a69ffaf0c41438be25a656dcdc87783daac0eae79218d023648ef9d708e373f","1.4.0":"41c3a16e7819857a4b826e944fcfb4f79c58e7192cb151b106a3acd7487d5771","1.4.3":"a8cfbabff09d21944a822c4a70f23a7ee14960c4054de151c9fbc7cdb29adff5","1.4.4":"19508f66d84f1e16bd24932aaa17d45417912ffd1c20d326b2f003b931ac2f8c","1.5.0":"52d9d118da099abda0e0153cd16892e201681f6e4d3c6e5790284d1ac469a407","1.5.1":"d283cb8c01024338fb614ae2199744d883379f59579423e4eb9234f5c59ebdd8","1.5.10":"889e2f12614e6e67d342571c1c3bab8940659bfbbf43fa30a6847e73decb85d1","1.5.11":"4906e4de2b3a9c2f0b0181817c9dc168cb910ba6941691d4e86b8387802b624a","1.5.12":"c0a0dc085bb33d9718e869ed5effc2c1581deffd7ed0d5adc119b94312181625","1.5.13":"bfe58c8756f9b5f5e55d5acbb6f7cfc469d201004d312c14e022eb7c52369b7d","1.5.14":"a0464f11e05128cba8881e6295e591fce1ed1e8d43ab0e16710effb8e543d810","1.5.15":"0687a735cb4aaf8f8f74ad6e228ca1b14e045cba8821991c7d19fc9beaeac766","1.5.16":"3544ac754f39d56ecf2b06300b7cca1b6f8723f99885cd11bd690f1a704d3728","1.5.17":"cf1e9e0ff6812cb7092a82dd588392d625decbe3680fe003dfc554f9045809d3","1.5.18":"1fd873effa66b632217d674745722f712a48b36bb79957fefae722757a74bc30","1.5.2":"39fccb7582e13e7e3436861fde7b83ddb8057788cbde792f2f0cf7003f068850","1.5.3":"39fccb7582e13e7e3436861fde7b83ddb8057788cbde792f2f0cf7003f068850","1.5.4":"e86174ba5aff6f257f8a3f4721c7942885cd203469a9d8ddc15dbe6c704e0f45","1.5.5":"f93ed2d4342e447eb9900a0150331113918f2a8b3baeeb795c07231d80f0337c","1.5.6":"e3d90e6ceb20d760f1e9fa63224c5a070a16b3ca6e7dc4cc2c594138e929cce8","1.5.7":"a0464f11e05128cba8881e6295e591fce1ed1e8d43ab0e16710effb8e543d810","1.5.8":"f075b84fb04f4043658a28402d963494dd58481f164c0b371cec94322fe6d131","1.5.9":"ac170fc924019fc2acd69a90a82ba5c2552dce7a2c01a05e5407443e7a9e5af7","1.6.0":"c8286514d1a4f1805e727e13d3c350bb390378c6f31ad6920030412d61ec9b3f","1.6.1":"aa1d3934091853fc21208993930c1bf92e17136428d1d0baaefabfa65d13e7fa","1.6.10":"41c3a16e7819857a4b826e944fcfb4f79c58e7192cb151b106a3acd7487d5771","1.6.11":"d136203e08e3b052254403815d4ccedb555b0a297686fe97952d275eb1f322eb","1.6.12":"c328d4e36bd6277e01cef0140993e23970f4dff84425f3eba236cdd9a8954355","1.6.13":"f1f8b091d054a08665f047b5ad91f1f309f729a8aa30a2992d6ffdbd7f9fa7e4","1.6.14":"f1f8b091d054a08665f047b5ad91f1f309f729a8aa30a2992d6ffdbd7f9fa7e4","1.6.15":"8cfaeae24ceefe171d40241549c1f62527ce41821e5fd2904c0df1973596c0c7","1.6.16":"4b7e00dbe218a173ee83dd9cb32103f7129520352bdb4b11172d62e55df519c1","1.6.17":"44a9691862e7bf0f3a1df3d02df0524625b3ce3bb0edb0c947388e13dcf536e6","1.6.18":"44a9691862e7bf0f3a1df3d02df0524625b3ce3bb0edb0c947388e13dcf536e6","1.6.19":"4b7e00dbe218a173ee83dd9cb32103f7129520352bdb4b11172d62e55df519c1","1.6.2":"6ef96b5e00a04a929d16f0e4a136bfcc5b8132a466d6907a99b2c8516a8952d5","1.6.20":"28027c836eef19b21b95500760961e181f6078d22cccf8cca62b77bbbb11a0c5","1.6.21":"b0d0777e81edc8532d42bcd3b6d518fecd6078153dfe9f5f859469d2c13b369d","1.6.22":"685c74a48ddc89575c8c756fe0b151432ef73bb68a2aa2c02ff1437cf82b17e1","1.6.23":"4b7e00dbe218a173ee83dd9cb32103f7129520352bdb4b11172d62e55df519c1","1.6.24":"701460ed5e3ed236c8c7273ba0a98a0235786b4a04bd6c7aa6088fb835549aa6","1.6.25":"efa09d1677148bdfe4639273479c9a1fa527d4cf5d2ca9af6dd876883652ba22","1.6.26":"44a9691862e7bf0f3a1df3d02df0524625b3ce3bb0edb0c947388e13dcf536e6","1.6.27":"44a9691862e7bf0f3a1df3d02df0524625b3ce3bb0edb0c947388e13dcf536e6","1.6.3":"5c10db827bcb92b9322d4aa5751076b825da87c6d18d6953847ba72317cca862","1.6.4":"baf2bb1c2ec7c1bfccfc514ef1cef67907e056e4f7153bb5932ecb835c9cff78","1.6.5":"c15567ca0457e57b674081cda13b48157657acd61126c705ab20eb55a0bb339e","1.6.6":"535bb041b99d5ac1bc9028ea88bc2fbf3dbadc80ea8dea236cc219123c194114","1.6.7":"d59af413e270e6f34b1b9a1c8c4acef35328f00e26fad447cfe214545af78d8f","1.6.8":"162fdff235a5cede0fd8994c4d90bb2c14d559c83f66baf6d059a7da1ce32f7d","1.6.9":"dcd16b769f063d06c81686cd5f23ac45065a0750d64396db8fd7a2b755f233e4"},"release":"1.6.0.dev22"}
1
+ {"plans":{"1.3.0":"645ac6bdda8dc0a73c219aa3684a29df4bdd4032aad97a833b259de489b2ce32","1.3.1":"580381a4f6f40fc1bd4e903e591ad0d5c1db27daaccafc6f79dabf8c3b84259a","1.3.2":"7a69ffaf0c41438be25a656dcdc87783daac0eae79218d023648ef9d708e373f","1.4.0":"41c3a16e7819857a4b826e944fcfb4f79c58e7192cb151b106a3acd7487d5771","1.4.3":"a8cfbabff09d21944a822c4a70f23a7ee14960c4054de151c9fbc7cdb29adff5","1.4.4":"19508f66d84f1e16bd24932aaa17d45417912ffd1c20d326b2f003b931ac2f8c","1.5.0":"52d9d118da099abda0e0153cd16892e201681f6e4d3c6e5790284d1ac469a407","1.5.1":"d283cb8c01024338fb614ae2199744d883379f59579423e4eb9234f5c59ebdd8","1.5.10":"889e2f12614e6e67d342571c1c3bab8940659bfbbf43fa30a6847e73decb85d1","1.5.11":"4906e4de2b3a9c2f0b0181817c9dc168cb910ba6941691d4e86b8387802b624a","1.5.12":"c0a0dc085bb33d9718e869ed5effc2c1581deffd7ed0d5adc119b94312181625","1.5.13":"bfe58c8756f9b5f5e55d5acbb6f7cfc469d201004d312c14e022eb7c52369b7d","1.5.14":"a0464f11e05128cba8881e6295e591fce1ed1e8d43ab0e16710effb8e543d810","1.5.15":"0687a735cb4aaf8f8f74ad6e228ca1b14e045cba8821991c7d19fc9beaeac766","1.5.16":"3544ac754f39d56ecf2b06300b7cca1b6f8723f99885cd11bd690f1a704d3728","1.5.17":"cf1e9e0ff6812cb7092a82dd588392d625decbe3680fe003dfc554f9045809d3","1.5.18":"1fd873effa66b632217d674745722f712a48b36bb79957fefae722757a74bc30","1.5.2":"39fccb7582e13e7e3436861fde7b83ddb8057788cbde792f2f0cf7003f068850","1.5.3":"39fccb7582e13e7e3436861fde7b83ddb8057788cbde792f2f0cf7003f068850","1.5.4":"e86174ba5aff6f257f8a3f4721c7942885cd203469a9d8ddc15dbe6c704e0f45","1.5.5":"f93ed2d4342e447eb9900a0150331113918f2a8b3baeeb795c07231d80f0337c","1.5.6":"e3d90e6ceb20d760f1e9fa63224c5a070a16b3ca6e7dc4cc2c594138e929cce8","1.5.7":"a0464f11e05128cba8881e6295e591fce1ed1e8d43ab0e16710effb8e543d810","1.5.8":"f075b84fb04f4043658a28402d963494dd58481f164c0b371cec94322fe6d131","1.5.9":"ac170fc924019fc2acd69a90a82ba5c2552dce7a2c01a05e5407443e7a9e5af7","1.6.0":"c8286514d1a4f1805e727e13d3c350bb390378c6f31ad6920030412d61ec9b3f","1.6.1":"aa1d3934091853fc21208993930c1bf92e17136428d1d0baaefabfa65d13e7fa","1.6.10":"41c3a16e7819857a4b826e944fcfb4f79c58e7192cb151b106a3acd7487d5771","1.6.11":"d136203e08e3b052254403815d4ccedb555b0a297686fe97952d275eb1f322eb","1.6.12":"c328d4e36bd6277e01cef0140993e23970f4dff84425f3eba236cdd9a8954355","1.6.13":"f1f8b091d054a08665f047b5ad91f1f309f729a8aa30a2992d6ffdbd7f9fa7e4","1.6.14":"f1f8b091d054a08665f047b5ad91f1f309f729a8aa30a2992d6ffdbd7f9fa7e4","1.6.15":"8cfaeae24ceefe171d40241549c1f62527ce41821e5fd2904c0df1973596c0c7","1.6.16":"4b7e00dbe218a173ee83dd9cb32103f7129520352bdb4b11172d62e55df519c1","1.6.17":"44a9691862e7bf0f3a1df3d02df0524625b3ce3bb0edb0c947388e13dcf536e6","1.6.18":"44a9691862e7bf0f3a1df3d02df0524625b3ce3bb0edb0c947388e13dcf536e6","1.6.19":"4b7e00dbe218a173ee83dd9cb32103f7129520352bdb4b11172d62e55df519c1","1.6.2":"6ef96b5e00a04a929d16f0e4a136bfcc5b8132a466d6907a99b2c8516a8952d5","1.6.20":"28027c836eef19b21b95500760961e181f6078d22cccf8cca62b77bbbb11a0c5","1.6.21":"b0d0777e81edc8532d42bcd3b6d518fecd6078153dfe9f5f859469d2c13b369d","1.6.22":"685c74a48ddc89575c8c756fe0b151432ef73bb68a2aa2c02ff1437cf82b17e1","1.6.23":"4b7e00dbe218a173ee83dd9cb32103f7129520352bdb4b11172d62e55df519c1","1.6.24":"701460ed5e3ed236c8c7273ba0a98a0235786b4a04bd6c7aa6088fb835549aa6","1.6.25":"efa09d1677148bdfe4639273479c9a1fa527d4cf5d2ca9af6dd876883652ba22","1.6.26":"44a9691862e7bf0f3a1df3d02df0524625b3ce3bb0edb0c947388e13dcf536e6","1.6.27":"44a9691862e7bf0f3a1df3d02df0524625b3ce3bb0edb0c947388e13dcf536e6","1.6.3":"5c10db827bcb92b9322d4aa5751076b825da87c6d18d6953847ba72317cca862","1.6.4":"baf2bb1c2ec7c1bfccfc514ef1cef67907e056e4f7153bb5932ecb835c9cff78","1.6.5":"c15567ca0457e57b674081cda13b48157657acd61126c705ab20eb55a0bb339e","1.6.6":"535bb041b99d5ac1bc9028ea88bc2fbf3dbadc80ea8dea236cc219123c194114","1.6.7":"d59af413e270e6f34b1b9a1c8c4acef35328f00e26fad447cfe214545af78d8f","1.6.8":"162fdff235a5cede0fd8994c4d90bb2c14d559c83f66baf6d059a7da1ce32f7d","1.6.9":"dcd16b769f063d06c81686cd5f23ac45065a0750d64396db8fd7a2b755f233e4"},"release":"1.6.0.dev23"}
@@ -163,6 +163,9 @@ class MigrationRunner:
163
163
  self._applied: set[str] = set()
164
164
  self._v2_available: bool | None = None
165
165
  self.hardening_pending: bool = False
166
+ # A skipped migration never gets its applied flag, so every status
167
+ # request finds it again; say so once per process, not on each poll.
168
+ self._skips_logged: set[str] = set()
166
169
 
167
170
  # ------------------------------------------------------------------
168
171
  # Public API
@@ -691,11 +694,13 @@ class MigrationRunner:
691
694
  if successor and successor in known and (
692
695
  successor in pending_versions or successor in self._applied
693
696
  ):
694
- _LOGGER.info(
695
- "Skipping %s: %s does everything it does.",
696
- migration.version,
697
- successor,
698
- )
697
+ if migration.version not in self._skips_logged:
698
+ self._skips_logged.add(migration.version)
699
+ _LOGGER.info(
700
+ "Skipping %s: %s does everything it does.",
701
+ migration.version,
702
+ successor,
703
+ )
699
704
  continue
700
705
  kept.append(migration)
701
706
  return kept
@@ -0,0 +1,2 @@
1
+ # flake8: noqa
2
+ __version__ = "1.6.0.dev23"
@@ -46,6 +46,8 @@ from boneio.models.events import (
46
46
  from boneio.models.state import ModbusDeviceState
47
47
  from boneio.version import __version__
48
48
  from boneio.webui.middleware.csrf import CSRFMiddleware
49
+ from boneio.webui.middleware.proxy import TrustedProxyMiddleware
50
+ from boneio.webui import security_events
49
51
  from boneio.webui.security_headers import apply_security_headers
50
52
  from boneio.webui.middleware.auth import (
51
53
  AuthMiddleware,
@@ -865,6 +867,12 @@ def init_app(
865
867
 
866
868
  # Set app state
867
869
  app.state.manager = manager
870
+ # Password guessing and the sessions signed out for it go to Home
871
+ # Assistant through the manager's MQTT link.
872
+ security_alert = getattr(manager, "security_alert", None)
873
+ security_events.set_publisher(
874
+ security_alert.publish_event if security_alert is not None else None
875
+ )
868
876
  app.state.auth_config = auth_config
869
877
  app.state.yaml_config_file = yaml_config_file
870
878
  app.state.web_server = web_server
@@ -998,6 +1006,10 @@ def init_app(
998
1006
  # Add GZip compression
999
1007
  app.add_middleware(GZipMiddleware, minimum_size=500)
1000
1008
 
1009
+ # Last added runs first: the real client address has to be in place before
1010
+ # anything reads it — the login throttle, the logs, the auth middleware.
1011
+ app.add_middleware(TrustedProxyMiddleware)
1012
+
1001
1013
  return app
1002
1014
 
1003
1015
 
@@ -18,6 +18,7 @@ belongs to Docker and an operator can change it in daemon.json.
18
18
 
19
19
  from __future__ import annotations
20
20
 
21
+ import ipaddress
21
22
  import json
22
23
  import logging
23
24
  import ssl
@@ -111,6 +112,30 @@ def _addresses_of(prefixes: tuple[str, ...]) -> list[str]:
111
112
  return sorted(set(addresses))
112
113
 
113
114
 
115
+ def docker_bridge_networks() -> list[ipaddress.IPv4Network]:
116
+ """The IPv4 networks of the host's Docker bridges.
117
+
118
+ Containers talk to the host from inside these — the reverse proxy among
119
+ them — so a request arriving from one came from this controller, not from
120
+ the LAN.
121
+
122
+ Returns:
123
+ Networks, deduplicated, or an empty list when none can be found.
124
+ """
125
+ networks: set[ipaddress.IPv4Network] = set()
126
+ try:
127
+ for name, addrs in psutil.net_if_addrs().items():
128
+ if not name.startswith(_BRIDGE_PREFIXES):
129
+ continue
130
+ for addr in addrs:
131
+ if int(getattr(addr, "family", 0)) != 2 or not addr.address or not addr.netmask:
132
+ continue
133
+ networks.add(ipaddress.IPv4Network(f"{addr.address}/{addr.netmask}", strict=False))
134
+ except Exception as err: # noqa: BLE001
135
+ _LOGGER.warning("Could not enumerate network interfaces: %s", err)
136
+ return sorted(networks)
137
+
138
+
114
139
  #: How long to wait for a Docker bridge to appear before giving up on it.
115
140
  #:
116
141
  #: boneIO deliberately does not start after docker.service — it drives relays,
@@ -0,0 +1 @@
1
+ import{r as e}from"./rolldown-runtime-hePW80VL.js";import{gn as t,hn as n,ln as r,sn as i}from"./fa-BhM0fApf.js";import{n as a}from"./axios-DulIOGd1.js";import{F as o,I as s,N as c,P as l,R as u,T as d,h as f,m as p,y as m}from"./index-CxfYcGSv.js";var h=e(t(),1),g=n();function _(e,t){return e?.response?.data?.detail||t}function v(){let{t:e}=s(),{username:t,isAdmin:n}=u(),[v,y]=(0,h.useState)([]),[b,x]=(0,h.useState)(!0),[S,C]=(0,h.useState)(null),[w,T]=(0,h.useState)(null),[E,D]=(0,h.useState)(``),[O,k]=(0,h.useState)(``),[A,j]=(0,h.useState)(`viewer`),[M,N]=(0,h.useState)(!1),P=O?o(O,E):null,F=P?e(l[P],{min:8}):null,I=(0,h.useCallback)(async()=>{try{let{data:e}=await a.get(`/api/accounts`);y(e.accounts??[]),C(null)}catch(t){C(_(t,e(`accounts.load_failed`)))}finally{x(!1)}},[e]);(0,h.useEffect)(()=>{n&&I()},[n,I]);let L=async t=>{t.preventDefault(),C(null),T(null),N(!0);try{await a.post(`/api/accounts`,{username:E,password:O,role:A}),D(``),k(``),j(`viewer`),T(e(`accounts.created`)),await I()}catch(t){C(_(t,e(`accounts.create_failed`)))}finally{N(!1)}},R=async t=>{if(window.confirm(e(`accounts.confirm_delete`,{username:t.username}))){C(null),T(null);try{await a.delete(`/api/accounts/${encodeURIComponent(t.username)}`),T(e(`accounts.deleted`,{username:t.username})),await I()}catch(t){C(_(t,e(`accounts.delete_failed`)))}}},z=async(t,n)=>{C(null),T(null);try{await a.put(`/api/accounts/${encodeURIComponent(t.username)}/role`,{role:n}),await I()}catch(t){C(_(t,e(`accounts.role_failed`))),await I()}},B=async t=>{let n=window.prompt(e(`accounts.prompt_new_password`,{username:t.username}));if(!n)return;C(null),T(null);let r=o(n,t.username);if(r){C(e(l[r],{min:8}));return}try{let{data:r}=await a.put(`/api/accounts/${encodeURIComponent(t.username)}/password`,{password:n});typeof r?.token==`string`&&localStorage.setItem(`token`,r.token),T(e(`accounts.password_reset`,{username:t.username}))}catch(t){C(_(t,e(`accounts.password_failed`)))}};return n?(0,g.jsxs)(d,{width:`wide`,children:[S&&(0,g.jsx)(c,{variant:`error`,message:S}),w&&(0,g.jsx)(c,{variant:`success`,message:w}),(0,g.jsx)(m,{icon:(0,g.jsx)(r,{}),title:e(`accounts.title`),children:b?(0,g.jsx)(`div`,{className:`flex justify-center py-6`,children:(0,g.jsx)(`span`,{className:`loading loading-spinner loading-md text-primary`})}):(0,g.jsx)(`div`,{className:`stg-inset overflow-x-auto`,children:(0,g.jsxs)(`table`,{className:`table table-sm`,children:[(0,g.jsx)(`thead`,{children:(0,g.jsxs)(`tr`,{children:[(0,g.jsx)(`th`,{children:e(`accounts.username`)}),(0,g.jsx)(`th`,{children:e(`accounts.role`)}),(0,g.jsx)(`th`,{className:`text-right`,children:e(`accounts.actions`)})]})}),(0,g.jsx)(`tbody`,{children:v.map(n=>{let r=n.username.toLowerCase()===(t??``).toLowerCase();return(0,g.jsxs)(`tr`,{children:[(0,g.jsxs)(`td`,{children:[(0,g.jsx)(`span`,{className:`font-medium font-mono`,children:n.username}),r&&(0,g.jsx)(`span`,{className:`ml-2 badge badge-ghost badge-xs`,children:e(`accounts.you`)})]}),(0,g.jsx)(`td`,{children:(0,g.jsxs)(`select`,{className:`select select-xs select-bordered`,value:n.role,disabled:r,onChange:e=>z(n,e.target.value),children:[(0,g.jsx)(`option`,{value:`admin`,children:e(`accounts.role_admin`)}),(0,g.jsx)(`option`,{value:`viewer`,children:e(`accounts.role_viewer`)})]})}),(0,g.jsxs)(`td`,{className:`text-right whitespace-nowrap`,children:[(0,g.jsx)(`button`,{className:`btn btn-ghost btn-xs`,onClick:()=>B(n),children:e(`accounts.reset_password`)}),(0,g.jsx)(`button`,{className:`btn btn-ghost btn-xs text-error ml-1`,disabled:r,onClick:()=>R(n),children:e(`accounts.delete`)})]})]},n.username)})})]})})}),(0,g.jsx)(`form`,{onSubmit:L,children:(0,g.jsx)(m,{icon:(0,g.jsx)(i,{}),title:e(`accounts.add_title`),description:e(`accounts.add_intro`),footer:(0,g.jsx)(p,{children:(0,g.jsxs)(`button`,{type:`submit`,className:`btn btn-primary btn-sm gap-2`,disabled:M||!E||!O||!!F,children:[M&&(0,g.jsx)(`span`,{className:`loading loading-spinner loading-xs`}),e(`accounts.add_button`)]})}),children:(0,g.jsxs)(`div`,{className:`grid grid-cols-1 sm:grid-cols-[1fr_1fr_auto] gap-3`,children:[(0,g.jsx)(f,{label:e(`accounts.username`),children:(0,g.jsx)(`input`,{type:`text`,className:`input input-bordered w-full font-mono`,placeholder:e(`accounts.username`),autoComplete:`off`,required:!0,value:E,onChange:e=>D(e.target.value)})}),(0,g.jsx)(f,{label:e(`accounts.password`),error:F||void 0,children:(0,g.jsx)(`input`,{type:`password`,className:`input input-bordered w-full font-mono ${F?`input-error`:``}`,placeholder:e(`accounts.password`),autoComplete:`new-password`,required:!0,minLength:8,"aria-invalid":F?!0:void 0,"aria-describedby":F?`accounts-password-error`:void 0,value:O,onChange:e=>k(e.target.value)})}),(0,g.jsx)(f,{label:e(`accounts.role`),className:`sm:w-40`,children:(0,g.jsxs)(`select`,{className:`select select-bordered w-full`,value:A,onChange:e=>j(e.target.value),children:[(0,g.jsx)(`option`,{value:`viewer`,children:e(`accounts.role_viewer`)}),(0,g.jsx)(`option`,{value:`admin`,children:e(`accounts.role_admin`)})]})})]})})})]}):(0,g.jsx)(d,{width:`wide`,children:(0,g.jsx)(c,{variant:`warning`,message:e(`accounts.admin_only`)})})}export{v as default};
@@ -1 +1 @@
1
- import{r as e}from"./rolldown-runtime-hePW80VL.js";import{gn as t,hn as n}from"./fa-BhM0fApf.js";import{n as r}from"./axios-DJBeJS4R.js";import{i}from"./configCache-BS98BpF9.js";var a=e(t(),1),o=`boneio-provisioned`;function s(e){let t=e?.match(/\/(proxy\/\d+)\/?$/);return t?`${o}-${t[1].replace(`/`,`-`)}`:o}function c(e,t){try{return e?.getItem(s(t))===`1`}catch{return!1}}function l(e,t,n){try{e?.setItem(s(t),n?`0`:`1`)}catch{}}var u=`boneio-update`,d=`boneio-stale-reload`;function f(e,t){let n=t?.match(/\/(proxy\/\d+)\/?$/);return n?`${e}-${n[1].replace(`/`,`-`)}`:e}function p(e){if(!e)return null;let t=e.trim();return t.startsWith(`v`)?t.slice(1):t}function m(e,t,n){try{let r=e?.getItem(f(u,t));if(!r)return null;let i=JSON.parse(r);return typeof i?.startedAt!=`number`||typeof i.fromVersion!=`string`||n-i.startedAt>36e5||i.startedAt>n+6e4?null:i}catch{return null}}function h(e,t,n){try{e?.setItem(f(u,t),JSON.stringify(n))}catch{}}function g(e,t){try{e?.removeItem(f(u,t))}catch{}}function _(e,t,n){if(t)return e.wentDown||e.downSince===void 0?e:{...e,downSince:void 0};let r=e.downSince??n,i=!!e.wentDown||n-r>=15e3;return r===e.downSince&&i===!!e.wentDown?e:{...e,downSince:r,wentDown:i}}function v(e,t){let n=p(t);if(!n)return!1;let r=p(e.toVersion);return r?n===r:n!==p(e.fromVersion)}function y(e){let{reachable:t,serverVersion:n,panelVersion:r,mark:i}=e;if(!t)return i?`updating`:`probably_updating`;let a=p(n),o=p(r);return a&&o&&a!==o?`stale_panel`:i&&i.wentDown&&a&&!v(i,a)&&a===p(i.fromVersion)?`update_failed`:`ok`}function b(e,t){try{return e?.getItem(d)===t}catch{return!0}}function x(e,t){try{e?.setItem(d,t)}catch{}}var S=n(),C=(0,a.createContext)({data:null,isLoading:!0,isApiAvailable:!0,needsOnboarding:!1,panelState:`ok`,dismissPanelState:()=>{},refetch:async()=>{}});function w(){return(0,a.useContext)(C)}function T(e,t){return e||!!t?.needs_onboarding}var E=2,D=1e3,O=3e4,k=5e3,A=`boneio-stale-bypass`,j=`1.6.0.dev22`;function M(e){try{return window.sessionStorage.getItem(e)}catch{return null}}function N({children:e}){let[t,n]=(0,a.useState)(null),[o,s]=(0,a.useState)(!0),[c,u]=(0,a.useState)(!0),[d,f]=(0,a.useState)(!1),[p,b]=(0,a.useState)(`ok`),x=(0,a.useCallback)((e,t)=>{let n=window.__BONEIO_BASE_PATH__,r=Date.now(),i=m(window.localStorage,n,r);if(i){let t=_(i,e,r);t!==i&&h(window.localStorage,n,t),i=t}i&&e&&v(i,t)&&(g(window.localStorage,n),i=null);let a=y({reachable:e,serverVersion:t,panelVersion:j,mark:i});a===`stale_panel`&&t&&M(A)===t&&(a=`ok`),b(a)},[]),w=(0,a.useCallback)(()=>{g(window.localStorage,window.__BONEIO_BASE_PATH__);let e=t?.version;if(p===`stale_panel`&&e)try{window.sessionStorage.setItem(A,e)}catch{}b(`ok`)},[t?.version,p]),N=(0,a.useCallback)(async()=>{for(let e=0;e<=E;e++)try{let{data:e}=await r.get(`/api/init`);n(t=>t&&JSON.stringify(t)===JSON.stringify(e)?t:e),f(t=>T(t,e)),l(window.localStorage,window.__BONEIO_BASE_PATH__,!!e?.needs_onboarding),x(!0,e?.version??null),u(!0),s(!1),i();return}catch{e<E&&await new Promise(e=>setTimeout(e,D))}x(!1,null),u(!1),s(!1)},[x]);(0,a.useEffect)(()=>{N()},[N]);let P=!c||p===`stale_panel`;return(0,a.useEffect)(()=>{let e=setInterval(N,P?k:O);return()=>clearInterval(e)},[N,P]),(0,a.useEffect)(()=>{let e=()=>{document.visibilityState===`visible`&&N()};return document.addEventListener(`visibilitychange`,e),()=>document.removeEventListener(`visibilitychange`,e)},[N]),(0,S.jsx)(C.Provider,{value:{data:t,isLoading:o,isApiAvailable:c,needsOnboarding:d,panelState:p,dismissPanelState:w,refetch:N},children:e})}export{p as a,v as c,g as i,h as l,w as n,x as o,b as r,m as s,N as t,c as u};
1
+ import{r as e}from"./rolldown-runtime-hePW80VL.js";import{gn as t,hn as n}from"./fa-BhM0fApf.js";import{n as r}from"./axios-DulIOGd1.js";import{i}from"./configCache-CPKXFBoa.js";var a=e(t(),1),o=`boneio-provisioned`;function s(e){let t=e?.match(/\/(proxy\/\d+)\/?$/);return t?`${o}-${t[1].replace(`/`,`-`)}`:o}function c(e,t){try{return e?.getItem(s(t))===`1`}catch{return!1}}function l(e,t,n){try{e?.setItem(s(t),n?`0`:`1`)}catch{}}var u=`boneio-update`,d=`boneio-stale-reload`;function f(e,t){let n=t?.match(/\/(proxy\/\d+)\/?$/);return n?`${e}-${n[1].replace(`/`,`-`)}`:e}function p(e){if(!e)return null;let t=e.trim();return t.startsWith(`v`)?t.slice(1):t}function m(e,t,n){try{let r=e?.getItem(f(u,t));if(!r)return null;let i=JSON.parse(r);return typeof i?.startedAt!=`number`||typeof i.fromVersion!=`string`||n-i.startedAt>36e5||i.startedAt>n+6e4?null:i}catch{return null}}function h(e,t,n){try{e?.setItem(f(u,t),JSON.stringify(n))}catch{}}function g(e,t){try{e?.removeItem(f(u,t))}catch{}}function _(e,t,n){if(t)return e.wentDown||e.downSince===void 0?e:{...e,downSince:void 0};let r=e.downSince??n,i=!!e.wentDown||n-r>=15e3;return r===e.downSince&&i===!!e.wentDown?e:{...e,downSince:r,wentDown:i}}function v(e,t){let n=p(t);if(!n)return!1;let r=p(e.toVersion);return r?n===r:n!==p(e.fromVersion)}function y(e){let{reachable:t,serverVersion:n,panelVersion:r,mark:i}=e;if(!t)return i?`updating`:`probably_updating`;let a=p(n),o=p(r);return a&&o&&a!==o?`stale_panel`:i&&i.wentDown&&a&&!v(i,a)&&a===p(i.fromVersion)?`update_failed`:`ok`}function b(e,t){try{return e?.getItem(d)===t}catch{return!0}}function x(e,t){try{e?.setItem(d,t)}catch{}}var S=n(),C=(0,a.createContext)({data:null,isLoading:!0,isApiAvailable:!0,needsOnboarding:!1,panelState:`ok`,dismissPanelState:()=>{},refetch:async()=>{}});function w(){return(0,a.useContext)(C)}function T(e,t){return e||!!t?.needs_onboarding}var E=2,D=1e3,O=3e4,k=5e3,A=`boneio-stale-bypass`,j=`1.6.0.dev23`;function M(e){try{return window.sessionStorage.getItem(e)}catch{return null}}function N({children:e}){let[t,n]=(0,a.useState)(null),[o,s]=(0,a.useState)(!0),[c,u]=(0,a.useState)(!0),[d,f]=(0,a.useState)(!1),[p,b]=(0,a.useState)(`ok`),x=(0,a.useCallback)((e,t)=>{let n=window.__BONEIO_BASE_PATH__,r=Date.now(),i=m(window.localStorage,n,r);if(i){let t=_(i,e,r);t!==i&&h(window.localStorage,n,t),i=t}i&&e&&v(i,t)&&(g(window.localStorage,n),i=null);let a=y({reachable:e,serverVersion:t,panelVersion:j,mark:i});a===`stale_panel`&&t&&M(A)===t&&(a=`ok`),b(a)},[]),w=(0,a.useCallback)(()=>{g(window.localStorage,window.__BONEIO_BASE_PATH__);let e=t?.version;if(p===`stale_panel`&&e)try{window.sessionStorage.setItem(A,e)}catch{}b(`ok`)},[t?.version,p]),N=(0,a.useCallback)(async()=>{for(let e=0;e<=E;e++)try{let{data:e}=await r.get(`/api/init`);n(t=>t&&JSON.stringify(t)===JSON.stringify(e)?t:e),f(t=>T(t,e)),l(window.localStorage,window.__BONEIO_BASE_PATH__,!!e?.needs_onboarding),x(!0,e?.version??null),u(!0),s(!1),i();return}catch{e<E&&await new Promise(e=>setTimeout(e,D))}x(!1,null),u(!1),s(!1)},[x]);(0,a.useEffect)(()=>{N()},[N]);let P=!c||p===`stale_panel`;return(0,a.useEffect)(()=>{let e=setInterval(N,P?k:O);return()=>clearInterval(e)},[N,P]),(0,a.useEffect)(()=>{let e=()=>{document.visibilityState===`visible`&&N()};return document.addEventListener(`visibilitychange`,e),()=>document.removeEventListener(`visibilitychange`,e)},[N]),(0,S.jsx)(C.Provider,{value:{data:t,isLoading:o,isApiAvailable:c,needsOnboarding:d,panelState:p,dismissPanelState:w,refetch:N},children:e})}export{p as a,v as c,g as i,h as l,w as n,x as o,b as r,m as s,N as t,c as u};
@@ -1 +1 @@
1
- import{r as e}from"./rolldown-runtime-hePW80VL.js";import{Gt as t,N as n,R as r,U as i,gn as a,hn as o,in as s,on as c,rn as l}from"./fa-BhM0fApf.js";import{a as u,i as d,n as f,o as p,t as m}from"./dialog-Dyh6AFFV.js";import{n as h}from"./axios-DJBeJS4R.js";import{I as g,N as _,T as v,m as y,y as b}from"./index-0xWkEPA0.js";var x=e(a(),1),S=o();function C(){let{t:e}=g(),a=(0,x.useRef)(null),[o,C]=(0,x.useState)(!1),[w,T]=(0,x.useState)(!1),[E,D]=(0,x.useState)(null),[O,k]=(0,x.useState)(null),[A,j]=(0,x.useState)([]),[M,N]=(0,x.useState)(!1),[P,F]=(0,x.useState)(null),I=(0,x.useCallback)(async()=>{try{let{data:e}=await h.get(`/api/config/backups`);j(e.backups||[])}catch(e){console.error(`Error fetching available backups:`,e)}},[]);(0,x.useEffect)(()=>{I()},[I]);let L=async()=>{C(!0),k(null);try{let{data:e}=await h.post(`/api/config/create_backup`);e.status===`success`?(await I(),alert(e.message)):k(e.message)}catch(t){k(e(`backup.error`)),console.error(`Error creating backup:`,t)}finally{C(!1)}},R=async(t,n)=>{try{let e=(await h.get(`/api/config/download_backup?backup_path=${encodeURIComponent(t)}`,{responseType:`blob`})).data,r=window.URL.createObjectURL(e),i=document.createElement(`a`);i.href=r,i.download=n,document.body.appendChild(i),i.click(),window.URL.revokeObjectURL(r),document.body.removeChild(i)}catch(t){k(e(`backup.error`)),console.error(`Error downloading backup:`,t)}},z=async(t,n)=>{if(confirm(`${e(`device_management.confirm_delete_backup`)||`Delete backup`} ${n}?`))try{let{data:e}=await h.delete(`/api/config/delete_backup`,{data:{backup_path:t}});e.status===`success`?(await I(),alert(e.message)):k(e.message)}catch(t){k(e(`backup.error`)),console.error(`Error deleting backup:`,t)}},B=async t=>{t.status===`success`?(D(t),confirm(e(`device_management.restore_success_restart`))&&(await h.post(`/api/restart`),setTimeout(()=>window.location.reload(),3e3))):k(t.message||e(`device_management.restore_failed`))},V=async(t,n)=>{T(!0);try{let{data:e}=await h.post(`/api/config/restore_backup`,{backup_path:t,override_serial:n},{timeout:3e4});await B(e)}catch(t){k(e(`device_management.restore_failed`)),console.error(`Error restoring config:`,t)}finally{T(!1)}},H=async t=>{T(!0),k(null),D(null);try{let{data:n}=await h.post(`/api/config/inspect_backup_path`,{backup_path:t});n.serial_mismatch?F({backupMeta:n.backup_meta,currentSerial:n.current_serial,onConfirm:e=>{F(null),V(t,e)},onCancel:()=>{F(null),T(!1)}}):confirm(e(`device_management.confirm_restore`))?await V(t,!1):T(!1)}catch(t){k(e(`device_management.restore_failed`)),console.error(`Error inspecting backup path:`,t),T(!1)}},U=async()=>{C(!0),k(null);try{let e=await h.get(`/api/config/download`,{responseType:`blob`}),t=e.headers[`content-disposition`],n=`boneio_config.tar.gz`;if(t){let e=t.match(/filename=(.+)/);e&&(n=e[1])}let r=e.data,i=window.URL.createObjectURL(r),a=document.createElement(`a`);a.href=i,a.download=n,document.body.appendChild(a),a.click(),window.URL.revokeObjectURL(i),document.body.removeChild(a)}catch(t){k(e(`backup.error`)),console.error(`Error downloading config:`,t)}finally{C(!1)}},W=async(t,n)=>{T(!0);try{let e=new FormData;e.append(`file`,t),e.append(`override_serial`,n?`true`:`false`);let{data:r}=await h.post(`/api/config/restore`,e,{headers:{"Content-Type":`multipart/form-data`},timeout:3e4});await B(r)}catch(t){k(e(`device_management.restore_failed`)),console.error(`Error restoring config:`,t)}finally{T(!1)}};return(0,S.jsxs)(v,{width:`wide`,children:[O&&(0,S.jsx)(_,{variant:`error`,message:O,action:(0,S.jsx)(`button`,{className:`btn btn-ghost btn-xs btn-circle`,onClick:()=>k(null),children:`×`})}),(0,S.jsx)(b,{icon:(0,S.jsx)(n,{}),title:e(`device_management.configuration_backup`),description:e(`device_management.backup_description`),footer:(0,S.jsxs)(y,{children:[(0,S.jsx)(`button`,{className:`btn btn-primary btn-sm gap-2`,onClick:U,disabled:o||w,children:o?(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(t,{className:`animate-spin`}),e(`device_management.preparing`)]}):(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(n,{}),e(`device_management.download_config`)]})}),(0,S.jsx)(`button`,{className:`btn btn-outline btn-sm gap-2`,onClick:()=>a.current?.click(),disabled:o||w,children:w?(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(t,{className:`animate-spin`}),e(`device_management.restoring`)]}):(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(c,{}),e(`device_management.restore_config`)]})})]}),children:(0,S.jsxs)(`div`,{className:`space-y-3`,children:[(0,S.jsx)(`input`,{ref:a,type:`file`,accept:`.tar.gz,.tgz`,onChange:async t=>{let n=t.target.files?.[0];if(n){T(!0),k(null),D(null);try{let t=new FormData;t.append(`file`,n);let{data:r}=await h.post(`/api/config/inspect_backup_file`,t,{headers:{"Content-Type":`multipart/form-data`}});r.serial_mismatch?F({backupMeta:r.backup_meta,currentSerial:r.current_serial,onConfirm:e=>{F(null),W(n,e)},onCancel:()=>{F(null),T(!1)}}):confirm(e(`device_management.confirm_restore`))?await W(n,!1):T(!1)}catch(t){k(e(`device_management.restore_failed`)),console.error(`Error inspecting backup file:`,t),T(!1)}}a.current&&(a.current.value=``)},style:{display:`none`}}),(0,S.jsx)(_,{variant:`info`,message:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(`span`,{className:`block`,children:e(`device_management.backup_info_1`)}),(0,S.jsx)(`span`,{className:`block`,children:e(`device_management.backup_info_2`)}),(0,S.jsx)(`span`,{className:`block font-semibold mt-1`,children:e(`device_management.restore_info`)})]})}),E&&(0,S.jsx)(_,{variant:E.validation_status===`success`?`success`:`warning`,message:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(`span`,{className:`block`,children:E.message}),(0,S.jsxs)(`span`,{className:`block text-xs opacity-70 mt-1 break-all`,children:[e(`device_management.backup_created`),`: `,E.backup_path]}),E.validation_status===`warning`&&(0,S.jsx)(`span`,{className:`block text-xs mt-1`,children:E.validation_message})]})})]})}),(0,S.jsx)(b,{icon:(0,S.jsx)(i,{}),title:e(`device_management.config_backups`),collapsible:A.length>0,open:M,onOpenChange:e=>{N(e),e&&I()},summary:A.length,action:(0,S.jsx)(`button`,{className:`btn btn-primary btn-sm gap-2`,onClick:L,disabled:o||w,children:o?(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(t,{className:`animate-spin`}),e(`device_management.preparing`)]}):(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(i,{}),e(`device_management.create_backup`)||`Create Backup`]})}),children:(0,S.jsxs)(`div`,{className:`space-y-3`,children:[(0,S.jsx)(_,{variant:`neutral`,message:e(`device_management.backup_limit_info`)||`Maximum 10 backups are kept. Oldest backups are automatically removed when creating new ones.`}),M&&A.length>0&&(0,S.jsx)(`div`,{className:`stg-inset overflow-x-auto`,children:(0,S.jsxs)(`table`,{className:`table table-sm`,children:[(0,S.jsx)(`thead`,{children:(0,S.jsxs)(`tr`,{children:[(0,S.jsx)(`th`,{children:e(`device_management.version`)}),(0,S.jsx)(`th`,{children:e(`device_management.date`)}),(0,S.jsx)(`th`,{children:e(`device_management.files`)}),(0,S.jsx)(`th`,{className:`text-right`,children:e(`device_management.actions`)})]})}),(0,S.jsx)(`tbody`,{children:A.map(t=>(0,S.jsxs)(`tr`,{children:[(0,S.jsx)(`td`,{className:`font-mono`,children:t.version}),(0,S.jsx)(`td`,{className:`text-xs font-mono`,children:t.timestamp}),(0,S.jsxs)(`td`,{children:[t.file_count,` `,e(`device_management.yaml_files`)]}),(0,S.jsx)(`td`,{children:(0,S.jsxs)(`div`,{className:`flex gap-1 justify-end`,children:[(0,S.jsxs)(`button`,{className:`btn btn-warning btn-xs gap-1.5`,onClick:()=>H(t.path),disabled:w,title:e(`device_management.restore`),children:[(0,S.jsx)(s,{}),e(`device_management.restore`)]}),(0,S.jsx)(`button`,{className:`btn btn-ghost btn-xs btn-square`,onClick:()=>R(t.path,t.filename),title:e(`device_management.download_config`),children:(0,S.jsx)(n,{})}),(0,S.jsx)(`button`,{className:`btn btn-ghost btn-xs btn-square text-error`,onClick:()=>z(t.path,t.filename),title:e(`device_management.delete`)||`Delete`,children:(0,S.jsx)(l,{})})]})})]},t.path))})]})})]})}),P&&(0,S.jsx)(m,{open:!0,onOpenChange:e=>{e||P.onCancel()},children:(0,S.jsxs)(f,{className:`max-w-md`,children:[(0,S.jsx)(u,{children:(0,S.jsxs)(p,{className:`flex items-center gap-2 text-warning`,children:[(0,S.jsx)(r,{}),e(`device_management.serial_mismatch_title`)||`Serial Number Mismatch`]})}),(0,S.jsxs)(`div`,{className:`py-4 text-sm space-y-4`,children:[(0,S.jsx)(`p`,{children:e(`device_management.serial_mismatch_desc`)||`The uploaded configuration backup was created on a device with a different serial number:`}),(0,S.jsxs)(`div`,{className:`bg-base-300 p-3 rounded-lg font-mono text-xs space-y-1`,children:[(0,S.jsxs)(`div`,{children:[(0,S.jsxs)(`span`,{className:`opacity-60`,children:[e(`device_management.backup_serial`)||`Backup Serial`,`:`]}),` `,(0,S.jsx)(`span`,{className:`text-warning font-semibold`,children:P.backupMeta?.effective_serial||`Unknown`})]}),P.backupMeta?.hostname&&(0,S.jsxs)(`div`,{children:[(0,S.jsxs)(`span`,{className:`opacity-60`,children:[e(`device_management.backup_hostname`)||`Backup Hostname`,`:`]}),` `,(0,S.jsx)(`span`,{children:P.backupMeta.hostname})]}),P.backupMeta?.created_at&&(0,S.jsxs)(`div`,{children:[(0,S.jsxs)(`span`,{className:`opacity-60`,children:[e(`device_management.backup_created_at`)||`Created At`,`:`]}),` `,(0,S.jsx)(`span`,{children:new Date(P.backupMeta.created_at).toLocaleString()})]}),(0,S.jsxs)(`div`,{children:[(0,S.jsxs)(`span`,{className:`opacity-60`,children:[e(`device_management.current_serial`)||`Current Serial`,`:`]}),` `,(0,S.jsx)(`span`,{className:`text-info font-semibold`,children:P.currentSerial})]})]}),(0,S.jsxs)(`div`,{className:`alert alert-warning text-xs`,children:[(0,S.jsx)(r,{className:`shrink-0`}),(0,S.jsx)(`span`,{children:e(`device_management.serial_override_warning`)||`WARNING: If both controllers are running at the same time on the same MQTT broker with the same serial number, conflicts will occur!`})]})]}),(0,S.jsxs)(d,{className:`flex flex-col sm:flex-row gap-2`,children:[(0,S.jsx)(`button`,{className:`btn btn-warning btn-sm`,onClick:()=>P.onConfirm(!0),children:e(`device_management.keep_old_serial`)||`Keep Old Serial`}),(0,S.jsx)(`button`,{className:`btn btn-outline btn-sm`,onClick:()=>P.onConfirm(!1),children:e(`device_management.use_new_serial`)||`Use New Serial`}),(0,S.jsx)(`button`,{className:`btn btn-ghost btn-sm`,onClick:P.onCancel,children:e(`common.cancel`)||`Cancel`})]})]})})]})}export{C as default};
1
+ import{r as e}from"./rolldown-runtime-hePW80VL.js";import{Gt as t,N as n,R as r,U as i,gn as a,hn as o,in as s,on as c,rn as l}from"./fa-BhM0fApf.js";import{a as u,i as d,n as f,o as p,t as m}from"./dialog-Dyh6AFFV.js";import{n as h}from"./axios-DulIOGd1.js";import{I as g,N as _,T as v,m as y,y as b}from"./index-CxfYcGSv.js";var x=e(a(),1),S=o();function C(){let{t:e}=g(),a=(0,x.useRef)(null),[o,C]=(0,x.useState)(!1),[w,T]=(0,x.useState)(!1),[E,D]=(0,x.useState)(null),[O,k]=(0,x.useState)(null),[A,j]=(0,x.useState)([]),[M,N]=(0,x.useState)(!1),[P,F]=(0,x.useState)(null),I=(0,x.useCallback)(async()=>{try{let{data:e}=await h.get(`/api/config/backups`);j(e.backups||[])}catch(e){console.error(`Error fetching available backups:`,e)}},[]);(0,x.useEffect)(()=>{I()},[I]);let L=async()=>{C(!0),k(null);try{let{data:e}=await h.post(`/api/config/create_backup`);e.status===`success`?(await I(),alert(e.message)):k(e.message)}catch(t){k(e(`backup.error`)),console.error(`Error creating backup:`,t)}finally{C(!1)}},R=async(t,n)=>{try{let e=(await h.get(`/api/config/download_backup?backup_path=${encodeURIComponent(t)}`,{responseType:`blob`})).data,r=window.URL.createObjectURL(e),i=document.createElement(`a`);i.href=r,i.download=n,document.body.appendChild(i),i.click(),window.URL.revokeObjectURL(r),document.body.removeChild(i)}catch(t){k(e(`backup.error`)),console.error(`Error downloading backup:`,t)}},z=async(t,n)=>{if(confirm(`${e(`device_management.confirm_delete_backup`)||`Delete backup`} ${n}?`))try{let{data:e}=await h.delete(`/api/config/delete_backup`,{data:{backup_path:t}});e.status===`success`?(await I(),alert(e.message)):k(e.message)}catch(t){k(e(`backup.error`)),console.error(`Error deleting backup:`,t)}},B=async t=>{t.status===`success`?(D(t),confirm(e(`device_management.restore_success_restart`))&&(await h.post(`/api/restart`),setTimeout(()=>window.location.reload(),3e3))):k(t.message||e(`device_management.restore_failed`))},V=async(t,n)=>{T(!0);try{let{data:e}=await h.post(`/api/config/restore_backup`,{backup_path:t,override_serial:n},{timeout:3e4});await B(e)}catch(t){k(e(`device_management.restore_failed`)),console.error(`Error restoring config:`,t)}finally{T(!1)}},H=async t=>{T(!0),k(null),D(null);try{let{data:n}=await h.post(`/api/config/inspect_backup_path`,{backup_path:t});n.serial_mismatch?F({backupMeta:n.backup_meta,currentSerial:n.current_serial,onConfirm:e=>{F(null),V(t,e)},onCancel:()=>{F(null),T(!1)}}):confirm(e(`device_management.confirm_restore`))?await V(t,!1):T(!1)}catch(t){k(e(`device_management.restore_failed`)),console.error(`Error inspecting backup path:`,t),T(!1)}},U=async()=>{C(!0),k(null);try{let e=await h.get(`/api/config/download`,{responseType:`blob`}),t=e.headers[`content-disposition`],n=`boneio_config.tar.gz`;if(t){let e=t.match(/filename=(.+)/);e&&(n=e[1])}let r=e.data,i=window.URL.createObjectURL(r),a=document.createElement(`a`);a.href=i,a.download=n,document.body.appendChild(a),a.click(),window.URL.revokeObjectURL(i),document.body.removeChild(a)}catch(t){k(e(`backup.error`)),console.error(`Error downloading config:`,t)}finally{C(!1)}},W=async(t,n)=>{T(!0);try{let e=new FormData;e.append(`file`,t),e.append(`override_serial`,n?`true`:`false`);let{data:r}=await h.post(`/api/config/restore`,e,{headers:{"Content-Type":`multipart/form-data`},timeout:3e4});await B(r)}catch(t){k(e(`device_management.restore_failed`)),console.error(`Error restoring config:`,t)}finally{T(!1)}};return(0,S.jsxs)(v,{width:`wide`,children:[O&&(0,S.jsx)(_,{variant:`error`,message:O,action:(0,S.jsx)(`button`,{className:`btn btn-ghost btn-xs btn-circle`,onClick:()=>k(null),children:`×`})}),(0,S.jsx)(b,{icon:(0,S.jsx)(n,{}),title:e(`device_management.configuration_backup`),description:e(`device_management.backup_description`),footer:(0,S.jsxs)(y,{children:[(0,S.jsx)(`button`,{className:`btn btn-primary btn-sm gap-2`,onClick:U,disabled:o||w,children:o?(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(t,{className:`animate-spin`}),e(`device_management.preparing`)]}):(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(n,{}),e(`device_management.download_config`)]})}),(0,S.jsx)(`button`,{className:`btn btn-outline btn-sm gap-2`,onClick:()=>a.current?.click(),disabled:o||w,children:w?(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(t,{className:`animate-spin`}),e(`device_management.restoring`)]}):(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(c,{}),e(`device_management.restore_config`)]})})]}),children:(0,S.jsxs)(`div`,{className:`space-y-3`,children:[(0,S.jsx)(`input`,{ref:a,type:`file`,accept:`.tar.gz,.tgz`,onChange:async t=>{let n=t.target.files?.[0];if(n){T(!0),k(null),D(null);try{let t=new FormData;t.append(`file`,n);let{data:r}=await h.post(`/api/config/inspect_backup_file`,t,{headers:{"Content-Type":`multipart/form-data`}});r.serial_mismatch?F({backupMeta:r.backup_meta,currentSerial:r.current_serial,onConfirm:e=>{F(null),W(n,e)},onCancel:()=>{F(null),T(!1)}}):confirm(e(`device_management.confirm_restore`))?await W(n,!1):T(!1)}catch(t){k(e(`device_management.restore_failed`)),console.error(`Error inspecting backup file:`,t),T(!1)}}a.current&&(a.current.value=``)},style:{display:`none`}}),(0,S.jsx)(_,{variant:`info`,message:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(`span`,{className:`block`,children:e(`device_management.backup_info_1`)}),(0,S.jsx)(`span`,{className:`block`,children:e(`device_management.backup_info_2`)}),(0,S.jsx)(`span`,{className:`block font-semibold mt-1`,children:e(`device_management.restore_info`)})]})}),E&&(0,S.jsx)(_,{variant:E.validation_status===`success`?`success`:`warning`,message:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(`span`,{className:`block`,children:E.message}),(0,S.jsxs)(`span`,{className:`block text-xs opacity-70 mt-1 break-all`,children:[e(`device_management.backup_created`),`: `,E.backup_path]}),E.validation_status===`warning`&&(0,S.jsx)(`span`,{className:`block text-xs mt-1`,children:E.validation_message})]})})]})}),(0,S.jsx)(b,{icon:(0,S.jsx)(i,{}),title:e(`device_management.config_backups`),collapsible:A.length>0,open:M,onOpenChange:e=>{N(e),e&&I()},summary:A.length,action:(0,S.jsx)(`button`,{className:`btn btn-primary btn-sm gap-2`,onClick:L,disabled:o||w,children:o?(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(t,{className:`animate-spin`}),e(`device_management.preparing`)]}):(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(i,{}),e(`device_management.create_backup`)||`Create Backup`]})}),children:(0,S.jsxs)(`div`,{className:`space-y-3`,children:[(0,S.jsx)(_,{variant:`neutral`,message:e(`device_management.backup_limit_info`)||`Maximum 10 backups are kept. Oldest backups are automatically removed when creating new ones.`}),M&&A.length>0&&(0,S.jsx)(`div`,{className:`stg-inset overflow-x-auto`,children:(0,S.jsxs)(`table`,{className:`table table-sm`,children:[(0,S.jsx)(`thead`,{children:(0,S.jsxs)(`tr`,{children:[(0,S.jsx)(`th`,{children:e(`device_management.version`)}),(0,S.jsx)(`th`,{children:e(`device_management.date`)}),(0,S.jsx)(`th`,{children:e(`device_management.files`)}),(0,S.jsx)(`th`,{className:`text-right`,children:e(`device_management.actions`)})]})}),(0,S.jsx)(`tbody`,{children:A.map(t=>(0,S.jsxs)(`tr`,{children:[(0,S.jsx)(`td`,{className:`font-mono`,children:t.version}),(0,S.jsx)(`td`,{className:`text-xs font-mono`,children:t.timestamp}),(0,S.jsxs)(`td`,{children:[t.file_count,` `,e(`device_management.yaml_files`)]}),(0,S.jsx)(`td`,{children:(0,S.jsxs)(`div`,{className:`flex gap-1 justify-end`,children:[(0,S.jsxs)(`button`,{className:`btn btn-warning btn-xs gap-1.5`,onClick:()=>H(t.path),disabled:w,title:e(`device_management.restore`),children:[(0,S.jsx)(s,{}),e(`device_management.restore`)]}),(0,S.jsx)(`button`,{className:`btn btn-ghost btn-xs btn-square`,onClick:()=>R(t.path,t.filename),title:e(`device_management.download_config`),children:(0,S.jsx)(n,{})}),(0,S.jsx)(`button`,{className:`btn btn-ghost btn-xs btn-square text-error`,onClick:()=>z(t.path,t.filename),title:e(`device_management.delete`)||`Delete`,children:(0,S.jsx)(l,{})})]})})]},t.path))})]})})]})}),P&&(0,S.jsx)(m,{open:!0,onOpenChange:e=>{e||P.onCancel()},children:(0,S.jsxs)(f,{className:`max-w-md`,children:[(0,S.jsx)(u,{children:(0,S.jsxs)(p,{className:`flex items-center gap-2 text-warning`,children:[(0,S.jsx)(r,{}),e(`device_management.serial_mismatch_title`)||`Serial Number Mismatch`]})}),(0,S.jsxs)(`div`,{className:`py-4 text-sm space-y-4`,children:[(0,S.jsx)(`p`,{children:e(`device_management.serial_mismatch_desc`)||`The uploaded configuration backup was created on a device with a different serial number:`}),(0,S.jsxs)(`div`,{className:`bg-base-300 p-3 rounded-lg font-mono text-xs space-y-1`,children:[(0,S.jsxs)(`div`,{children:[(0,S.jsxs)(`span`,{className:`opacity-60`,children:[e(`device_management.backup_serial`)||`Backup Serial`,`:`]}),` `,(0,S.jsx)(`span`,{className:`text-warning font-semibold`,children:P.backupMeta?.effective_serial||`Unknown`})]}),P.backupMeta?.hostname&&(0,S.jsxs)(`div`,{children:[(0,S.jsxs)(`span`,{className:`opacity-60`,children:[e(`device_management.backup_hostname`)||`Backup Hostname`,`:`]}),` `,(0,S.jsx)(`span`,{children:P.backupMeta.hostname})]}),P.backupMeta?.created_at&&(0,S.jsxs)(`div`,{children:[(0,S.jsxs)(`span`,{className:`opacity-60`,children:[e(`device_management.backup_created_at`)||`Created At`,`:`]}),` `,(0,S.jsx)(`span`,{children:new Date(P.backupMeta.created_at).toLocaleString()})]}),(0,S.jsxs)(`div`,{children:[(0,S.jsxs)(`span`,{className:`opacity-60`,children:[e(`device_management.current_serial`)||`Current Serial`,`:`]}),` `,(0,S.jsx)(`span`,{className:`text-info font-semibold`,children:P.currentSerial})]})]}),(0,S.jsxs)(`div`,{className:`alert alert-warning text-xs`,children:[(0,S.jsx)(r,{className:`shrink-0`}),(0,S.jsx)(`span`,{children:e(`device_management.serial_override_warning`)||`WARNING: If both controllers are running at the same time on the same MQTT broker with the same serial number, conflicts will occur!`})]})]}),(0,S.jsxs)(d,{className:`flex flex-col sm:flex-row gap-2`,children:[(0,S.jsx)(`button`,{className:`btn btn-warning btn-sm`,onClick:()=>P.onConfirm(!0),children:e(`device_management.keep_old_serial`)||`Keep Old Serial`}),(0,S.jsx)(`button`,{className:`btn btn-outline btn-sm`,onClick:()=>P.onConfirm(!1),children:e(`device_management.use_new_serial`)||`Use New Serial`}),(0,S.jsx)(`button`,{className:`btn btn-ghost btn-sm`,onClick:P.onCancel,children:e(`common.cancel`)||`Cancel`})]})]})})]})}export{C as default};