boneIO 0.9.0.dev11__tar.gz → 0.9.0.dev12__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.
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/PKG-INFO +1 -1
- boneio-0.9.0.dev12/boneio/helper/schema_converter.py +200 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/schema/filters.yaml +2 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/schema/schema.yaml +32 -24
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/schema/update_interval.yaml +1 -1
- boneio-0.9.0.dev12/boneio/version.py +2 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/adc.schema.json +107 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/abap-BrgZPUOV.js +6 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/apex-DyP6w7ZV.js +6 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/azcli-BaLxmfj-.js +6 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/bat-CFOPXBzS.js +6 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/bicep-BfEKNvv3.js +7 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/cameligo-BFG1Mk7z.js +6 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/clojure-DTECt2xU.js +6 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/codicon-DCmgc-ay.ttf +0 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/coffee-CDGzqUPQ.js +6 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/cpp-CLLBncYj.js +6 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/csharp-dUCx_-0o.js +6 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/csp-5Rap-vPy.js +6 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/css-D3h14YRZ.js +8 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/cssMode-C6WOe53z.js +9 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/cypher-DrQuvNYM.js +6 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/dart-CFKIUWau.js +6 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/dockerfile-Zznr-cwX.js +6 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/ecl-Ce3n6wWz.js +6 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/elixir-deUWdS0T.js +6 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/flow9-i9-g7ZhI.js +6 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/freemarker2-Chb0HRQK.js +8 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/fsharp-CzKuDChf.js +6 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/go-Cphgjts3.js +6 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/graphql-Cg7bfA9N.js +6 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/handlebars-BotqKFhK.js +6 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/hcl-0cvrggvQ.js +6 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/html-BUffd9h5.js +6 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/htmlMode-DGiHOMs2.js +9 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/index-CCgG6NMg.css +1 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/index-Dd5fmLR2.js +825 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/ini-Drc7WvVn.js +6 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/java-B_fMsGYe.js +6 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/javascript-t9M9489U.js +6 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/jsonMode-C35_b2Ms.js +15 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/julia-Bqgm2twL.js +6 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/kotlin-BSkB5QuD.js +6 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/less-BsTHnhdd.js +7 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/lexon-YWi4-JPR.js +6 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/liquid-C7SecqiU.js +6 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/lua-nf6ki56Z.js +6 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/m3-Cpb6xl2v.js +6 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/markdown-DSZPf7rp.js +6 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/mdx-BEFGzID8.js +6 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/mips-B_c3zf-v.js +6 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/msdax-rUNN04Wq.js +6 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/mysql-DDwshQtU.js +6 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/objective-c-B5zXfXm9.js +6 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/pascal-CXOwvkN_.js +6 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/pascaligo-Bc-ZgV77.js +6 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/perl-CwNk8-XU.js +6 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/pgsql-tGk8EFnU.js +6 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/php-CpIb_Oan.js +6 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/pla-B03wrqEc.js +6 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/postiats-BKlk5iyT.js +6 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/powerquery-Bhzvs7bI.js +6 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/powershell-Dd3NCNK9.js +6 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/protobuf-COyEY5Pt.js +7 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/pug-BaJupSGV.js +6 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/python-BsskM_ld.js +6 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/qsharp-DXyYeYxl.js +6 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/r-CdQndTaG.js +6 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/razor-D_hKeI4x.js +6 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/redis-CVwtpugi.js +6 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/redshift-25W9uPmb.js +6 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/restructuredtext-DfzH4Xui.js +6 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/ruby-Cp1zYvxS.js +6 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/rust-D5C2fndG.js +6 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/sb-CDntyWJ8.js +6 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/scala-BoFRg7Ot.js +6 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/scheme-Bio4gycK.js +6 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/scss-4Ik7cdeQ.js +8 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/shell-CX-rkNHf.js +6 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/solidity-Tw7wswEv.js +6 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/sophia-C5WLch3f.js +6 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/sparql-DHaeiCBh.js +6 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/sql-CCSDG5nI.js +6 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/st-pnP8ivHi.js +6 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/swift-DwJ7jVG9.js +8 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/systemverilog-B9Xyijhd.js +6 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/tcl-DnHyzjbg.js +6 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/tsMode-CsV3zhd6.js +16 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/twig-CPajHgWi.js +6 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/typescript-Cw5sooqS.js +6 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/typespec-D-MeaMDU.js +6 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/vb-DgyLZaXg.js +6 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/wgsl-BIv9DU6q.js +303 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/xml-0KgE2q9x.js +6 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/yaml-BXwpGS5c.js +6 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/assets/yaml.worker-C2uymlqn.js +476 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/binary_sensor.schema.json +403 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/boneio.schema.json +44 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/config.schema.json +2423 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/cover.schema.json +138 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/dallas.schema.json +27 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/ds2482.schema.json +39 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/event.schema.json +445 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/ina219.schema.json +119 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/webui/frontend-dist/index.html +2 -2
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/lm75.schema.json +82 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/logger.schema.json +47 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/mcp23017.schema.json +51 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/mcp9808.schema.json +83 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/modbus.schema.json +80 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/modbus_sensors.schema.json +128 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/mqtt.schema.json +103 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/oled.schema.json +130 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/output.schema.json +156 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/output_group.schema.json +79 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/pca9685.schema.json +51 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/pcf8575.schema.json +51 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/sensor.schema.json +129 -0
- boneio-0.9.0.dev12/boneio/webui/frontend-dist/web.schema.json +54 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/pyproject.toml +1 -1
- boneio-0.9.0.dev11/boneio/version.py +0 -2
- boneio-0.9.0.dev11/boneio/webui/frontend-dist/assets/css.worker-YzWC8yAR.js +0 -84
- boneio-0.9.0.dev11/boneio/webui/frontend-dist/assets/html.worker-D5NPIcdM.js +0 -461
- boneio-0.9.0.dev11/boneio/webui/frontend-dist/assets/index-Bzix_ULo.js +0 -72
- boneio-0.9.0.dev11/boneio/webui/frontend-dist/assets/index-Dt_UdFzp.css +0 -1
- boneio-0.9.0.dev11/boneio/webui/frontend-dist/assets/ts.worker-BSchkg-h.js +0 -51334
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/LICENSE +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/README.md +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/__init__.py +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/boards/0.7/input.yaml +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/boards/0.7/output_32_10.yaml +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/boards/0.8/input.yaml +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/boards/0.8/output_32_10.yaml +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/bonecli.py +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/const.py +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/cover.py +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/example_config/__init__.py +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/example_config/adc.yaml +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/example_config/binary_sensor.yaml +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/example_config/binary_sensor_v_0_7.yaml +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/example_config/config.yaml +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/example_config/cover.yaml +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/example_config/event.yaml +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/example_config/event_all.yaml +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/example_config/event_v_0_7.yaml +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/example_config/led32x4A.yaml +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/example_config/output24x16A.yaml +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/example_config/output24x16A_v0.3.yaml +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/example_config/output32x10A.yaml +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/example_config/output32x5A.yaml +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/fonts/danube__.ttf +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/group/__init__.py +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/group/output.py +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/helper/__init__.py +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/helper/async_updater.py +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/helper/click_timer.py +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/helper/config.py +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/helper/events.py +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/helper/exceptions.py +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/helper/filter.py +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/helper/gpio.py +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/helper/gpiod.py +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/helper/ha_discovery.py +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/helper/loader.py +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/helper/logger.py +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/helper/message_bus.py +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/helper/mqtt.py +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/helper/oled.py +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/helper/onewire/W1ThermSensor.py +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/helper/onewire/__init__.py +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/helper/onewire/ds2482.py +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/helper/onewire/onewire.py +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/helper/pcf8575.py +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/helper/queue.py +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/helper/sensor/ina_219_smbus.py +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/helper/state_manager.py +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/helper/stats.py +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/helper/timeperiod.py +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/helper/util.py +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/helper/yaml_util.py +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/input/__init__.py +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/input/gpio.py +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/input/gpio_new.py +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/manager.py +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/modbus/__init__.py +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/modbus/client.py +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/modbus/cwt.json +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/modbus/dts1964_3f.json +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/modbus/liquid-sensor.json +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/modbus/modbuscli.py +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/modbus/orno-or-we-517.json +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/modbus/pt100.json +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/modbus/r4dcb08.json +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/modbus/sdm120.json +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/modbus/sdm630.json +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/modbus/sensor.py +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/modbus/sht20.json +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/modbus/sht30.json +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/modbus/single_sensor.py +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/modbus/socomec_e03.json +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/modbus/socomec_e23.json +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/modbus/sofar.json +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/modbus/utils.py +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/models/__init__.py +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/models/files.py +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/models/logs.py +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/mqtt_client.py +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/oled.py +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/relay/__init__.py +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/relay/basic.py +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/relay/gpio.py +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/relay/mcp.py +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/relay/pca.py +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/relay/pcf.py +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/runner.py +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/schema/actions.yaml +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/schema/actions_sensor.yaml +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/schema/actions_switch.yaml +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/schema/filters_adc.yaml +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/schema/id.yaml +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/schema/temp_unit.yaml +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/sensor/__init__.py +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/sensor/adc.py +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/sensor/gpio.py +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/sensor/gpio_new.py +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/sensor/ina219.py +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/sensor/serial_number.py +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/sensor/temp/__init__.py +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/sensor/temp/dallas.py +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/sensor/temp/lm75.py +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/sensor/temp/mcp9808.py +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/webui/app.py +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/webui/frontend-dist/assets/editor.worker-D5ngByhL.js +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/webui/frontend-dist/assets/json.worker-F0ZGA5Zk.js +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/webui/frontend-dist/boneio.svg +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/webui/frontend-dist/boneio_fav.svg +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/webui/web_server.py +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/boneio/webui/websocket_manager.py +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/tests/32_5_config.yaml +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/tests/bandit.yaml +0 -0
- {boneio-0.9.0.dev11 → boneio-0.9.0.dev12}/tests/relay_32_5.py +0 -0
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
import json
|
|
4
|
+
import os
|
|
5
|
+
from typing import Any, Dict, List, Union
|
|
6
|
+
|
|
7
|
+
import yaml
|
|
8
|
+
from yaml import SafeLoader, load
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class BoneIOLoader(SafeLoader):
|
|
12
|
+
"""Custom YAML loader with !include constructor."""
|
|
13
|
+
|
|
14
|
+
def __init__(self, stream):
|
|
15
|
+
self._root = os.path.split(stream.name)[0]
|
|
16
|
+
super().__init__(stream)
|
|
17
|
+
|
|
18
|
+
def include(self, node):
|
|
19
|
+
"""Include file referenced at node."""
|
|
20
|
+
filename = os.path.join(self._root, self.construct_scalar(node))
|
|
21
|
+
with open(filename, 'r') as f:
|
|
22
|
+
return load(f, BoneIOLoader)
|
|
23
|
+
|
|
24
|
+
# Register the !include constructor
|
|
25
|
+
BoneIOLoader.add_constructor('!include', BoneIOLoader.include)
|
|
26
|
+
|
|
27
|
+
def convert_type(cerberus_type: Union[str, List[str]]) -> Union[str, List[str]]:
|
|
28
|
+
"""Convert Cerberus type to JSON Schema type."""
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
type_map = {
|
|
32
|
+
'string': 'string',
|
|
33
|
+
'integer': 'integer',
|
|
34
|
+
'float': 'number',
|
|
35
|
+
'boolean': 'boolean',
|
|
36
|
+
'dict': 'object',
|
|
37
|
+
'list': 'array'
|
|
38
|
+
}
|
|
39
|
+
if isinstance(cerberus_type, list):
|
|
40
|
+
return [type_map.get(type, 'string') for type in cerberus_type]
|
|
41
|
+
return type_map.get(cerberus_type, 'string')
|
|
42
|
+
|
|
43
|
+
def create_boolean_schema() -> Dict[str, Any]:
|
|
44
|
+
"""Create a schema that accepts both boolean and boolean-like string values."""
|
|
45
|
+
return {
|
|
46
|
+
"oneOf": [
|
|
47
|
+
{"type": "boolean"},
|
|
48
|
+
{
|
|
49
|
+
"type": "string",
|
|
50
|
+
"enum": ["yes", "no", "true", "false", "on", "off"],
|
|
51
|
+
"x-yaml-boolean": True
|
|
52
|
+
}
|
|
53
|
+
]
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
def convert_cerberus_to_json_schema(cerberus_schema: Dict[str, Any]) -> Dict[str, Any]:
|
|
57
|
+
"""Convert a Cerberus schema to JSON Schema format."""
|
|
58
|
+
json_schema = {
|
|
59
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
60
|
+
"type": "object",
|
|
61
|
+
"properties": {},
|
|
62
|
+
"required": []
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
for field, schema in cerberus_schema.items():
|
|
66
|
+
if not isinstance(schema, dict):
|
|
67
|
+
continue
|
|
68
|
+
|
|
69
|
+
field_schema = {}
|
|
70
|
+
|
|
71
|
+
# Handle type conversion, nullable and !include
|
|
72
|
+
if "type" in schema:
|
|
73
|
+
if schema["type"] == "boolean":
|
|
74
|
+
field_schema.update(create_boolean_schema())
|
|
75
|
+
else:
|
|
76
|
+
base_type = convert_type(schema["type"])
|
|
77
|
+
types = ["string"] # Always allow string for !include
|
|
78
|
+
if isinstance(base_type, list):
|
|
79
|
+
types.extend(base_type)
|
|
80
|
+
else:
|
|
81
|
+
types.append(base_type)
|
|
82
|
+
if schema.get("nullable", False):
|
|
83
|
+
types.append("null")
|
|
84
|
+
field_schema["type"] = types
|
|
85
|
+
|
|
86
|
+
# Handle required fields - only if required and no default
|
|
87
|
+
if schema.get("required", False) and "default" not in schema:
|
|
88
|
+
json_schema["required"].append(field)
|
|
89
|
+
|
|
90
|
+
# Handle default values
|
|
91
|
+
if "default" in schema:
|
|
92
|
+
field_schema["default"] = schema["default"]
|
|
93
|
+
|
|
94
|
+
# Handle nested dictionaries and arrays
|
|
95
|
+
if "schema" in schema and isinstance(schema["schema"], dict):
|
|
96
|
+
if schema.get("type") == "dict":
|
|
97
|
+
types = ["string", "object"] # Allow both string for !include and object
|
|
98
|
+
if schema.get("nullable", False):
|
|
99
|
+
types.append("null")
|
|
100
|
+
field_schema["type"] = types
|
|
101
|
+
field_schema["properties"] = {}
|
|
102
|
+
nested_required = []
|
|
103
|
+
|
|
104
|
+
for nested_field, nested_schema in schema["schema"].items():
|
|
105
|
+
field_schema["properties"][nested_field] = convert_cerberus_to_json_schema(
|
|
106
|
+
{nested_field: nested_schema}
|
|
107
|
+
)["properties"][nested_field]
|
|
108
|
+
# Only add to required if the field is required and has no default
|
|
109
|
+
if nested_schema.get("required", False) and "default" not in nested_schema:
|
|
110
|
+
nested_required.append(nested_field)
|
|
111
|
+
|
|
112
|
+
if nested_required:
|
|
113
|
+
field_schema["required"] = nested_required
|
|
114
|
+
|
|
115
|
+
elif schema.get("type") == "list":
|
|
116
|
+
types = ["string", "array"] # Allow both string for !include and array
|
|
117
|
+
if schema.get("nullable", False):
|
|
118
|
+
types.append("null")
|
|
119
|
+
field_schema["type"] = types
|
|
120
|
+
if isinstance(schema["schema"], dict):
|
|
121
|
+
field_schema["items"] = convert_cerberus_to_json_schema(
|
|
122
|
+
{"item": schema["schema"]}
|
|
123
|
+
)["properties"]["item"]
|
|
124
|
+
|
|
125
|
+
# Handle allowed values (enum)
|
|
126
|
+
if "allowed" in schema:
|
|
127
|
+
if schema.get("type") == "list":
|
|
128
|
+
if "items" not in field_schema:
|
|
129
|
+
field_schema["items"] = {}
|
|
130
|
+
field_schema["items"]["enum"] = schema["allowed"]
|
|
131
|
+
# Add examples for better IDE support
|
|
132
|
+
field_schema["items"]["examples"] = [schema["allowed"][0]] if schema["allowed"] else []
|
|
133
|
+
else:
|
|
134
|
+
field_schema["enum"] = schema["allowed"]
|
|
135
|
+
# Add examples for better IDE support
|
|
136
|
+
field_schema["examples"] = [schema["allowed"][0]] if schema["allowed"] else []
|
|
137
|
+
|
|
138
|
+
# Handle descriptions from meta
|
|
139
|
+
if "meta" in schema and isinstance(schema["meta"], dict):
|
|
140
|
+
if "label" in schema["meta"]:
|
|
141
|
+
field_schema["description"] = schema["meta"]["label"]
|
|
142
|
+
# Add title for better IDE support
|
|
143
|
+
field_schema["title"] = field.replace("_", " ").capitalize()
|
|
144
|
+
|
|
145
|
+
json_schema["properties"][field] = field_schema
|
|
146
|
+
|
|
147
|
+
# Remove required array if empty
|
|
148
|
+
if not json_schema["required"]:
|
|
149
|
+
del json_schema["required"]
|
|
150
|
+
|
|
151
|
+
return json_schema
|
|
152
|
+
|
|
153
|
+
def generate_section_schema(section_name: str, section_schema: Dict[str, Any]) -> Dict[str, Any]:
|
|
154
|
+
"""Generate a schema for a specific section."""
|
|
155
|
+
if section_schema.get("type") == "array":
|
|
156
|
+
# For array types, use the items schema directly
|
|
157
|
+
return {
|
|
158
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
159
|
+
**convert_cerberus_to_json_schema({section_name: section_schema})["properties"][section_name]
|
|
160
|
+
}
|
|
161
|
+
else:
|
|
162
|
+
# For object types, wrap in an object schema
|
|
163
|
+
return {
|
|
164
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
165
|
+
"type": "object",
|
|
166
|
+
"properties": {
|
|
167
|
+
section_name: convert_cerberus_to_json_schema({section_name: section_schema})["properties"][section_name]
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
def main():
|
|
172
|
+
"""Main function to convert schema."""
|
|
173
|
+
script_dir = os.path.dirname(os.path.abspath(__file__))
|
|
174
|
+
schema_file = os.path.join(script_dir, "..", "schema", "schema.yaml")
|
|
175
|
+
output_dir = os.path.join(script_dir, "..", "..", "frontend", "public")
|
|
176
|
+
|
|
177
|
+
# Create output directory if it doesn't exist
|
|
178
|
+
os.makedirs(output_dir, exist_ok=True)
|
|
179
|
+
|
|
180
|
+
# Load the schema
|
|
181
|
+
with open(schema_file, "r") as f:
|
|
182
|
+
schema = yaml.load(f, Loader=BoneIOLoader)
|
|
183
|
+
|
|
184
|
+
# Convert and save the main schema
|
|
185
|
+
json_schema = convert_cerberus_to_json_schema(schema)
|
|
186
|
+
main_schema_file = os.path.join(output_dir, "config.schema.json")
|
|
187
|
+
with open(main_schema_file, "w") as f:
|
|
188
|
+
json.dump(json_schema, f, indent=2)
|
|
189
|
+
print(f"Schema written to {main_schema_file}")
|
|
190
|
+
|
|
191
|
+
# Generate and save section-specific schemas
|
|
192
|
+
for section_name, section_schema in schema.items():
|
|
193
|
+
section_json_schema = generate_section_schema(section_name, section_schema)
|
|
194
|
+
section_schema_file = os.path.join(output_dir, f"{section_name}.schema.json")
|
|
195
|
+
with open(section_schema_file, "w") as f:
|
|
196
|
+
json.dump(section_json_schema, f, indent=2)
|
|
197
|
+
print(f"Section schema for {section_name} written to {section_schema_file}")
|
|
198
|
+
|
|
199
|
+
if __name__ == "__main__":
|
|
200
|
+
main()
|
|
@@ -2,7 +2,7 @@ mqtt:
|
|
|
2
2
|
type: dict
|
|
3
3
|
required: True
|
|
4
4
|
meta:
|
|
5
|
-
label: Mqtt section
|
|
5
|
+
label: "https://boneio.eu/docs/black/configuration/mqtt \n Mqtt section of boneIO Black configuration file. It handled connecting to mqtt broker, which then is connected to Home Assistant or other smart home system."
|
|
6
6
|
schema:
|
|
7
7
|
host:
|
|
8
8
|
required: True
|
|
@@ -30,7 +30,7 @@ mqtt:
|
|
|
30
30
|
default: boneIO
|
|
31
31
|
required: True
|
|
32
32
|
meta:
|
|
33
|
-
label: Prefix topic for boneIO to use.
|
|
33
|
+
label: Prefix topic for boneIO to use. If not set, then it will be set to name of the device from boneio section, otherwise set to boneIO.
|
|
34
34
|
ha_discovery:
|
|
35
35
|
type: dict
|
|
36
36
|
meta:
|
|
@@ -53,7 +53,7 @@ web:
|
|
|
53
53
|
required: False
|
|
54
54
|
nullable: True
|
|
55
55
|
meta:
|
|
56
|
-
label: Web section
|
|
56
|
+
label: "https://boneio.eu/docs/black/0.9.x-dev/configuration/web \n Web section of boneIO Black. It enables web interface. Default on port 8090."
|
|
57
57
|
schema:
|
|
58
58
|
port:
|
|
59
59
|
required: False
|
|
@@ -83,6 +83,8 @@ web:
|
|
|
83
83
|
logger:
|
|
84
84
|
type: dict
|
|
85
85
|
required: False
|
|
86
|
+
meta:
|
|
87
|
+
label: "https://boneio.eu/docs/black/configuration/logger \n Logger section of boneIO Black. It enables logging level. If run as systemd service, then it will log to journal. If not, then it will log to /tmp/boneio.log"
|
|
86
88
|
schema:
|
|
87
89
|
default:
|
|
88
90
|
type: string
|
|
@@ -98,12 +100,14 @@ logger:
|
|
|
98
100
|
coerce: lower # Convert to lowercase for all values
|
|
99
101
|
allowed: ['critical', 'error', 'warning', 'info', 'debug', 'CRITICAL', 'ERROR', 'WARNING', 'INFO', 'DEBUG']
|
|
100
102
|
meta:
|
|
101
|
-
label:
|
|
103
|
+
label: "Each line suppose to have one python module name and logging level eg pymodbus.client: INFO."
|
|
102
104
|
|
|
103
105
|
oled:
|
|
104
106
|
type: dict
|
|
105
107
|
default: {}
|
|
106
108
|
required: True
|
|
109
|
+
meta:
|
|
110
|
+
label: "https://boneio.eu/docs/black/configuration/oled \n Oled section of boneIO Black. It enables oled screen. You'd need enabled: true to make it work."
|
|
107
111
|
schema:
|
|
108
112
|
enabled:
|
|
109
113
|
type: boolean
|
|
@@ -176,6 +180,8 @@ oled:
|
|
|
176
180
|
modbus:
|
|
177
181
|
type: dict
|
|
178
182
|
required: False
|
|
183
|
+
meta:
|
|
184
|
+
label: "https://boneio.eu/docs/black/configuration/modbus \n Modbus section of boneIO Black. It enables modbus support. You define on which uart it modbus defined. For new boneIO it is uart4. For old boneIO it is uart1."
|
|
179
185
|
schema:
|
|
180
186
|
uart:
|
|
181
187
|
type: string
|
|
@@ -202,7 +208,7 @@ modbus_sensors:
|
|
|
202
208
|
type: list
|
|
203
209
|
required: False
|
|
204
210
|
meta:
|
|
205
|
-
label:
|
|
211
|
+
label: "https://boneio.eu/docs/black/configuration/modbus-sensors \n List of modbus sensors. You can use predefined modbus sensors. It would fetch data from them and publish to mqtt."
|
|
206
212
|
schema:
|
|
207
213
|
type: dict
|
|
208
214
|
schema:
|
|
@@ -265,16 +271,14 @@ lm75:
|
|
|
265
271
|
type: list
|
|
266
272
|
required: False
|
|
267
273
|
meta:
|
|
268
|
-
label: LM75 Sensor list.
|
|
274
|
+
label: "https://boneio.eu/docs/black/configuration/lm75 \n LM75 Sensor list. All boneIO Black has one LM75 on board."
|
|
269
275
|
schema:
|
|
270
276
|
type: dict
|
|
271
277
|
required: False
|
|
272
278
|
schema:
|
|
273
279
|
id: !include id.yaml
|
|
274
280
|
address:
|
|
275
|
-
type:
|
|
276
|
-
- string
|
|
277
|
-
- integer
|
|
281
|
+
type: integer
|
|
278
282
|
required: True
|
|
279
283
|
default: 0x48
|
|
280
284
|
meta:
|
|
@@ -287,7 +291,7 @@ ina219:
|
|
|
287
291
|
type: list
|
|
288
292
|
required: False
|
|
289
293
|
meta:
|
|
290
|
-
label: INA219 Sensor list.
|
|
294
|
+
label: "https://boneio.eu/docs/black/configuration/ina219 \n INA219 Sensor list. All boneIO Black has one INA219 on board, which measures current, voltage and power of boneIO board."
|
|
291
295
|
schema:
|
|
292
296
|
type: dict
|
|
293
297
|
required: False
|
|
@@ -326,7 +330,7 @@ mcp9808:
|
|
|
326
330
|
type: list
|
|
327
331
|
required: False
|
|
328
332
|
meta:
|
|
329
|
-
label: MCP9808 Sensor list.
|
|
333
|
+
label: "https://boneio.eu/docs/black/configuration/mcp9808 \n MCP9808 Sensor list. Older boneIO Black had one MCP9808 instead of LM75on board, which measures temperature."
|
|
330
334
|
schema:
|
|
331
335
|
type: dict
|
|
332
336
|
required: False
|
|
@@ -348,7 +352,7 @@ mcp23017:
|
|
|
348
352
|
type: list
|
|
349
353
|
required: False
|
|
350
354
|
meta:
|
|
351
|
-
label: mcp23017 Pin config
|
|
355
|
+
label: "https://boneio.eu/docs/black/configuration/mcp23017 \n MCP23017 Pin config. All boneIO Black 32X10/Cover/Cover Mix/24x16 has two MCP23017 on board. If you use new boneio: section, then you don't need to define this."
|
|
352
356
|
schema:
|
|
353
357
|
type: dict
|
|
354
358
|
schema:
|
|
@@ -374,7 +378,7 @@ pcf8575:
|
|
|
374
378
|
type: list
|
|
375
379
|
required: False
|
|
376
380
|
meta:
|
|
377
|
-
label: pcf8575 Pin config
|
|
381
|
+
label: "https://boneio.eu/docs/black/configuration/pcf8575 \n PCF8575 Pin config. UNSTABLE."
|
|
378
382
|
schema:
|
|
379
383
|
type: dict
|
|
380
384
|
schema:
|
|
@@ -400,7 +404,7 @@ pca9685:
|
|
|
400
404
|
type: list
|
|
401
405
|
required: False
|
|
402
406
|
meta:
|
|
403
|
-
label: pca9685 Pin config
|
|
407
|
+
label: "https://boneio.eu/docs/black/configuration/pca9685 \n PCA9685 Pin config."
|
|
404
408
|
schema:
|
|
405
409
|
type: dict
|
|
406
410
|
schema:
|
|
@@ -425,7 +429,7 @@ pca9685:
|
|
|
425
429
|
output:
|
|
426
430
|
type: list
|
|
427
431
|
meta:
|
|
428
|
-
label: List of
|
|
432
|
+
label: "https://boneio.eu/docs/black/configuration/output \n List of outputs to define."
|
|
429
433
|
check_with: output_id_uniqueness
|
|
430
434
|
schema:
|
|
431
435
|
type: dict
|
|
@@ -510,7 +514,7 @@ output:
|
|
|
510
514
|
output_group:
|
|
511
515
|
type: list
|
|
512
516
|
meta:
|
|
513
|
-
label: List of groupes outputs
|
|
517
|
+
label: "https://boneio.eu/docs/black/configuration/output_group \n List of groupes outputs to define. Output has to be defined first in output section!"
|
|
514
518
|
check_with: output_id_uniqueness
|
|
515
519
|
schema:
|
|
516
520
|
type: dict
|
|
@@ -544,7 +548,7 @@ output_group:
|
|
|
544
548
|
binary_sensor:
|
|
545
549
|
type: list
|
|
546
550
|
meta:
|
|
547
|
-
label: GPIO
|
|
551
|
+
label: "https://boneio.eu/docs/black/configuration/binary \n GPIO binary section of boneIO Black. It enables binary sensors in HA. It detects press and release states. It can run action based on states. It always send message to MQTT broker of invoked state."
|
|
548
552
|
schema:
|
|
549
553
|
type: dict
|
|
550
554
|
schema:
|
|
@@ -656,7 +660,7 @@ binary_sensor:
|
|
|
656
660
|
event:
|
|
657
661
|
type: list
|
|
658
662
|
meta:
|
|
659
|
-
label: GPIO
|
|
663
|
+
label: "https://boneio.eu/docs/black/configuration/event \n GPIO event entity section of boneIO Black. It enables event entities in HA. It detects single, double and long click. It can run action based on states. It always send message to MQTT broker of invoked state."
|
|
660
664
|
schema:
|
|
661
665
|
type: dict
|
|
662
666
|
schema:
|
|
@@ -734,7 +738,7 @@ event:
|
|
|
734
738
|
adc:
|
|
735
739
|
type: list
|
|
736
740
|
meta:
|
|
737
|
-
label: GPIO ADC section
|
|
741
|
+
label: "https://boneio.eu/docs/black/configuration/adc \n GPIO ADC section of boneIO Black. It enables ADC sensors in HA. Don't let them hang without use."
|
|
738
742
|
schema:
|
|
739
743
|
type: dict
|
|
740
744
|
schema:
|
|
@@ -761,7 +765,7 @@ cover:
|
|
|
761
765
|
type: list
|
|
762
766
|
required: False
|
|
763
767
|
meta:
|
|
764
|
-
label: Cover section
|
|
768
|
+
label: "https://boneio.eu/docs/black/configuration/cover \n Cover section of boneIO Black. It enables cover entities in HA. You'd need output config to use it first."
|
|
765
769
|
schema:
|
|
766
770
|
type: dict
|
|
767
771
|
schema:
|
|
@@ -835,7 +839,7 @@ ds2482:
|
|
|
835
839
|
type: list
|
|
836
840
|
required: False
|
|
837
841
|
meta:
|
|
838
|
-
label: DS2482
|
|
842
|
+
label: "https://boneio.eu/docs/black/configuration/ds2482 \n DS2482 section of boneIO Black. It enables DS2482 1 wire extenders, which you can use in sensor: config."
|
|
839
843
|
schema:
|
|
840
844
|
type: dict
|
|
841
845
|
required: False
|
|
@@ -851,6 +855,8 @@ ds2482:
|
|
|
851
855
|
dallas:
|
|
852
856
|
type: dict
|
|
853
857
|
required: False
|
|
858
|
+
meta:
|
|
859
|
+
label: "https://boneio.eu/docs/black/configuration/dallas \n Dallas section of boneIO Black. It enables Dallas bus in boneIO Black Kernel."
|
|
854
860
|
schema:
|
|
855
861
|
id:
|
|
856
862
|
type: string
|
|
@@ -862,7 +868,7 @@ sensor:
|
|
|
862
868
|
type: list
|
|
863
869
|
required: False
|
|
864
870
|
meta:
|
|
865
|
-
label: Sensor list. Currently only Dallas DS18B20 support.
|
|
871
|
+
label: Sensor list. Currently only Dallas DS18B20 and DS2482 support. Check DS18B20 or DS2482 section for more info.
|
|
866
872
|
schema:
|
|
867
873
|
type: dict
|
|
868
874
|
schema:
|
|
@@ -902,7 +908,7 @@ boneio:
|
|
|
902
908
|
type: dict
|
|
903
909
|
required: False
|
|
904
910
|
meta:
|
|
905
|
-
label: BoneIO configuration section
|
|
911
|
+
label: "https://boneio.eu/docs/black/0.9.x-dev/configuration/boneio \n BoneIO configuration section. It's new section for boneIO Black. It enables you to use predefined device types. For now only 0.7 and 0.8 devices are supported."
|
|
906
912
|
schema:
|
|
907
913
|
name:
|
|
908
914
|
type: string
|
|
@@ -910,7 +916,9 @@ boneio:
|
|
|
910
916
|
meta:
|
|
911
917
|
label: Name of boneio. Default is Black.
|
|
912
918
|
version:
|
|
913
|
-
type:
|
|
919
|
+
type:
|
|
920
|
+
- float
|
|
921
|
+
- string
|
|
914
922
|
coerce:
|
|
915
923
|
- str
|
|
916
924
|
required: False
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"adc": {
|
|
6
|
+
"type": [
|
|
7
|
+
"string",
|
|
8
|
+
"array"
|
|
9
|
+
],
|
|
10
|
+
"items": {
|
|
11
|
+
"type": [
|
|
12
|
+
"string",
|
|
13
|
+
"object"
|
|
14
|
+
],
|
|
15
|
+
"properties": {
|
|
16
|
+
"id": {
|
|
17
|
+
"type": [
|
|
18
|
+
"string",
|
|
19
|
+
"string"
|
|
20
|
+
],
|
|
21
|
+
"description": "Id to use in HA if needed. Default to pin number.",
|
|
22
|
+
"title": "Id"
|
|
23
|
+
},
|
|
24
|
+
"pin": {
|
|
25
|
+
"type": [
|
|
26
|
+
"string",
|
|
27
|
+
"string"
|
|
28
|
+
],
|
|
29
|
+
"enum": [
|
|
30
|
+
"P9_33",
|
|
31
|
+
"P9_35",
|
|
32
|
+
"P9_36",
|
|
33
|
+
"P9_37",
|
|
34
|
+
"P9_38",
|
|
35
|
+
"P9_39",
|
|
36
|
+
"P9_40"
|
|
37
|
+
],
|
|
38
|
+
"examples": [
|
|
39
|
+
"P9_33"
|
|
40
|
+
],
|
|
41
|
+
"description": "PIN to use.",
|
|
42
|
+
"title": "Pin"
|
|
43
|
+
},
|
|
44
|
+
"update_interval": {
|
|
45
|
+
"type": [
|
|
46
|
+
"string",
|
|
47
|
+
"string",
|
|
48
|
+
"string"
|
|
49
|
+
],
|
|
50
|
+
"default": "60s",
|
|
51
|
+
"description": "Update interval. How often to fetch data from sensor. Default to 60s.",
|
|
52
|
+
"title": "Update interval"
|
|
53
|
+
},
|
|
54
|
+
"show_in_ha": {
|
|
55
|
+
"oneOf": [
|
|
56
|
+
{
|
|
57
|
+
"type": "boolean"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"type": "string",
|
|
61
|
+
"enum": [
|
|
62
|
+
"yes",
|
|
63
|
+
"no",
|
|
64
|
+
"true",
|
|
65
|
+
"false",
|
|
66
|
+
"on",
|
|
67
|
+
"off"
|
|
68
|
+
],
|
|
69
|
+
"x-yaml-boolean": true
|
|
70
|
+
}
|
|
71
|
+
],
|
|
72
|
+
"default": true,
|
|
73
|
+
"description": "If you want you can disable discovering this input in HA.",
|
|
74
|
+
"title": "Show in ha"
|
|
75
|
+
},
|
|
76
|
+
"filters": {
|
|
77
|
+
"type": [
|
|
78
|
+
"string",
|
|
79
|
+
"array"
|
|
80
|
+
],
|
|
81
|
+
"default": [
|
|
82
|
+
{
|
|
83
|
+
"multiply": 1.8
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"round": 2
|
|
87
|
+
}
|
|
88
|
+
],
|
|
89
|
+
"items": {
|
|
90
|
+
"type": [
|
|
91
|
+
"string",
|
|
92
|
+
"object"
|
|
93
|
+
]
|
|
94
|
+
},
|
|
95
|
+
"description": "List of filters to apply. Allowed filters visible in allowed section.",
|
|
96
|
+
"title": "Filters"
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
"required": [
|
|
100
|
+
"pin"
|
|
101
|
+
]
|
|
102
|
+
},
|
|
103
|
+
"description": "https://boneio.eu/docs/black/configuration/adc \n GPIO ADC section of boneIO Black. It enables ADC sensors in HA. Don't let them hang without use.",
|
|
104
|
+
"title": "Adc"
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*!-----------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
4
|
+
* Released under the MIT license
|
|
5
|
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
|
+
*-----------------------------------------------------------------------------*/var e={comments:{lineComment:"*"},brackets:[["[","]"],["(",")"]]},t={defaultToken:"invalid",ignoreCase:!0,tokenPostfix:".abap",keywords:["abap-source","abbreviated","abstract","accept","accepting","according","activation","actual","add","add-corresponding","adjacent","after","alias","aliases","align","all","allocate","alpha","analysis","analyzer","and","append","appendage","appending","application","archive","area","arithmetic","as","ascending","aspect","assert","assign","assigned","assigning","association","asynchronous","at","attributes","authority","authority-check","avg","back","background","backup","backward","badi","base","before","begin","between","big","binary","bintohex","bit","black","blank","blanks","blob","block","blocks","blue","bound","boundaries","bounds","boxed","break-point","buffer","by","bypassing","byte","byte-order","call","calling","case","cast","casting","catch","center","centered","chain","chain-input","chain-request","change","changing","channels","character","char-to-hex","check","checkbox","ci_","circular","class","class-coding","class-data","class-events","class-methods","class-pool","cleanup","clear","client","clob","clock","close","coalesce","code","coding","col_background","col_group","col_heading","col_key","col_negative","col_normal","col_positive","col_total","collect","color","column","columns","comment","comments","commit","common","communication","comparing","component","components","compression","compute","concat","concat_with_space","concatenate","cond","condense","condition","connect","connection","constants","context","contexts","continue","control","controls","conv","conversion","convert","copies","copy","corresponding","country","cover","cpi","create","creating","critical","currency","currency_conversion","current","cursor","cursor-selection","customer","customer-function","dangerous","data","database","datainfo","dataset","date","dats_add_days","dats_add_months","dats_days_between","dats_is_valid","daylight","dd/mm/yy","dd/mm/yyyy","ddmmyy","deallocate","decimal_shift","decimals","declarations","deep","default","deferred","define","defining","definition","delete","deleting","demand","department","descending","describe","destination","detail","dialog","directory","disconnect","display","display-mode","distinct","divide","divide-corresponding","division","do","dummy","duplicate","duplicates","duration","during","dynamic","dynpro","edit","editor-call","else","elseif","empty","enabled","enabling","encoding","end","endat","endcase","endcatch","endchain","endclass","enddo","endenhancement","end-enhancement-section","endexec","endform","endfunction","endian","endif","ending","endinterface","end-lines","endloop","endmethod","endmodule","end-of-definition","end-of-editing","end-of-file","end-of-page","end-of-selection","endon","endprovide","endselect","end-test-injection","end-test-seam","endtry","endwhile","endwith","engineering","enhancement","enhancement-point","enhancements","enhancement-section","entries","entry","enum","environment","equiv","errormessage","errors","escaping","event","events","exact","except","exception","exceptions","exception-table","exclude","excluding","exec","execute","exists","exit","exit-command","expand","expanding","expiration","explicit","exponent","export","exporting","extend","extended","extension","extract","fail","fetch","field","field-groups","fields","field-symbol","field-symbols","file","filter","filters","filter-table","final","find","first","first-line","fixed-point","fkeq","fkge","flush","font","for","form","format","forward","found","frame","frames","free","friends","from","function","functionality","function-pool","further","gaps","generate","get","giving","gkeq","gkge","global","grant","green","group","groups","handle","handler","harmless","hashed","having","hdb","header","headers","heading","head-lines","help-id","help-request","hextobin","hide","high","hint","hold","hotspot","icon","id","identification","identifier","ids","if","ignore","ignoring","immediately","implementation","implementations","implemented","implicit","import","importing","in","inactive","incl","include","includes","including","increment","index","index-line","infotypes","inheriting","init","initial","initialization","inner","inout","input","insert","instance","instances","instr","intensified","interface","interface-pool","interfaces","internal","intervals","into","inverse","inverted-date","is","iso","job","join","keep","keeping","kernel","key","keys","keywords","kind","language","last","late","layout","leading","leave","left","left-justified","leftplus","leftspace","legacy","length","let","level","levels","like","line","lines","line-count","linefeed","line-selection","line-size","list","listbox","list-processing","little","llang","load","load-of-program","lob","local","locale","locator","logfile","logical","log-point","long","loop","low","lower","lpad","lpi","ltrim","mail","main","major-id","mapping","margin","mark","mask","match","matchcode","max","maximum","medium","members","memory","mesh","message","message-id","messages","messaging","method","methods","min","minimum","minor-id","mm/dd/yy","mm/dd/yyyy","mmddyy","mode","modif","modifier","modify","module","move","move-corresponding","multiply","multiply-corresponding","name","nametab","native","nested","nesting","new","new-line","new-page","new-section","next","no","no-display","no-extension","no-gap","no-gaps","no-grouping","no-heading","no-scrolling","no-sign","no-title","no-topofpage","no-zero","node","nodes","non-unicode","non-unique","not","null","number","object","objects","obligatory","occurrence","occurrences","occurs","of","off","offset","ole","on","only","open","option","optional","options","or","order","other","others","out","outer","output","output-length","overflow","overlay","pack","package","pad","padding","page","pages","parameter","parameters","parameter-table","part","partially","pattern","percentage","perform","performing","person","pf1","pf10","pf11","pf12","pf13","pf14","pf15","pf2","pf3","pf4","pf5","pf6","pf7","pf8","pf9","pf-status","pink","places","pool","pos_high","pos_low","position","pragmas","precompiled","preferred","preserving","primary","print","print-control","priority","private","procedure","process","program","property","protected","provide","public","push","pushbutton","put","queue-only","quickinfo","radiobutton","raise","raising","range","ranges","read","reader","read-only","receive","received","receiver","receiving","red","redefinition","reduce","reduced","ref","reference","refresh","regex","reject","remote","renaming","replace","replacement","replacing","report","request","requested","reserve","reset","resolution","respecting","responsible","result","results","resumable","resume","retry","return","returncode","returning","returns","right","right-justified","rightplus","rightspace","risk","rmc_communication_failure","rmc_invalid_status","rmc_system_failure","role","rollback","rows","rpad","rtrim","run","sap","sap-spool","saving","scale_preserving","scale_preserving_scientific","scan","scientific","scientific_with_leading_zero","scroll","scroll-boundary","scrolling","search","secondary","seconds","section","select","selection","selections","selection-screen","selection-set","selection-sets","selection-table","select-options","send","separate","separated","set","shared","shift","short","shortdump-id","sign_as_postfix","single","size","skip","skipping","smart","some","sort","sortable","sorted","source","specified","split","spool","spots","sql","sqlscript","stable","stamp","standard","starting","start-of-editing","start-of-selection","state","statement","statements","static","statics","statusinfo","step-loop","stop","structure","structures","style","subkey","submatches","submit","subroutine","subscreen","subtract","subtract-corresponding","suffix","sum","summary","summing","supplied","supply","suppress","switch","switchstates","symbol","syncpoints","syntax","syntax-check","syntax-trace","system-call","system-exceptions","system-exit","tab","tabbed","table","tables","tableview","tabstrip","target","task","tasks","test","testing","test-injection","test-seam","text","textpool","then","throw","time","times","timestamp","timezone","tims_is_valid","title","titlebar","title-lines","to","tokenization","tokens","top-lines","top-of-page","trace-file","trace-table","trailing","transaction","transfer","transformation","translate","transporting","trmac","truncate","truncation","try","tstmp_add_seconds","tstmp_current_utctimestamp","tstmp_is_valid","tstmp_seconds_between","type","type-pool","type-pools","types","uline","unassign","under","unicode","union","unique","unit_conversion","unix","unpack","until","unwind","up","update","upper","user","user-command","using","utf-8","valid","value","value-request","values","vary","varying","verification-message","version","via","view","visible","wait","warning","when","whenever","where","while","width","window","windows","with","with-heading","without","with-title","word","work","write","writer","xml","xsd","yellow","yes","yymmdd","zero","zone","abap_system_timezone","abap_user_timezone","access","action","adabas","adjust_numbers","allow_precision_loss","allowed","amdp","applicationuser","as_geo_json","as400","associations","balance","behavior","breakup","bulk","cds","cds_client","check_before_save","child","clients","corr","corr_spearman","cross","cycles","datn_add_days","datn_add_months","datn_days_between","dats_from_datn","dats_tims_to_tstmp","dats_to_datn","db2","db6","ddl","dense_rank","depth","deterministic","discarding","entities","entity","error","failed","finalize","first_value","fltp_to_dec","following","fractional","full","graph","grouping","hierarchy","hierarchy_ancestors","hierarchy_ancestors_aggregate","hierarchy_descendants","hierarchy_descendants_aggregate","hierarchy_siblings","incremental","indicators","lag","last_value","lead","leaves","like_regexpr","link","locale_sap","lock","locks","many","mapped","matched","measures","median","mssqlnt","multiple","nodetype","ntile","nulls","occurrences_regexpr","one","operations","oracle","orphans","over","parent","parents","partition","pcre","period","pfcg_mapping","preceding","privileged","product","projection","rank","redirected","replace_regexpr","reported","response","responses","root","row","row_number","sap_system_date","save","schema","session","sets","shortdump","siblings","spantree","start","stddev","string_agg","subtotal","sybase","tims_from_timn","tims_to_timn","to_blob","to_clob","total","trace-entry","tstmp_to_dats","tstmp_to_dst","tstmp_to_tims","tstmpl_from_utcl","tstmpl_to_utcl","unbounded","utcl_add_seconds","utcl_current","utcl_seconds_between","uuid","var","verbatim"],builtinFunctions:["abs","acos","asin","atan","bit-set","boolc","boolx","ceil","char_off","charlen","cmax","cmin","concat_lines_of","contains","contains_any_not_of","contains_any_of","cos","cosh","count","count_any_not_of","count_any_of","dbmaxlen","distance","escape","exp","find_any_not_of","find_any_of","find_end","floor","frac","from_mixed","ipow","line_exists","line_index","log","log10","matches","nmax","nmin","numofchar","repeat","rescale","reverse","round","segment","shift_left","shift_right","sign","sin","sinh","sqrt","strlen","substring","substring_after","substring_before","substring_from","substring_to","tan","tanh","to_lower","to_mixed","to_upper","trunc","utclong_add","utclong_current","utclong_diff","xsdbool","xstrlen"],typeKeywords:["b","c","d","decfloat16","decfloat34","f","i","int8","n","p","s","string","t","utclong","x","xstring","any","clike","csequence","decfloat","numeric","simple","xsequence","accp","char","clnt","cuky","curr","datn","dats","d16d","d16n","d16r","d34d","d34n","d34r","dec","df16_dec","df16_raw","df34_dec","df34_raw","fltp","geom_ewkb","int1","int2","int4","lang","lchr","lraw","numc","quan","raw","rawstring","sstring","timn","tims","unit","utcl","df16_scl","df34_scl","prec","varc","abap_bool","abap_false","abap_true","abap_undefined","me","screen","space","super","sy","syst","table_line","*sys*"],builtinMethods:["class_constructor","constructor"],derivedTypes:["%CID","%CID_REF","%CONTROL","%DATA","%ELEMENT","%FAIL","%KEY","%MSG","%PARAM","%PID","%PID_ASSOC","%PID_PARENT","%_HINTS"],cdsLanguage:["@AbapAnnotation","@AbapCatalog","@AccessControl","@API","@ClientDependent","@ClientHandling","@CompatibilityContract","@DataAging","@EndUserText","@Environment","@LanguageDependency","@MappingRole","@Metadata","@MetadataExtension","@ObjectModel","@Scope","@Semantics","$EXTENSION","$SELF"],selectors:["->","->*","=>","~","~*"],operators:[" +"," -","/","*","**","div","mod","=","#","@","+=","-=","*=","/=","**=","&&=","?=","&","&&","bit-and","bit-not","bit-or","bit-xor","m","o","z","<"," >","<=",">=","<>","><","=<","=>","bt","byte-ca","byte-cn","byte-co","byte-cs","byte-na","byte-ns","ca","cn","co","cp","cs","eq","ge","gt","le","lt","na","nb","ne","np","ns","*/","*:","--","/*","//"],symbols:/[=><!~?&+\-*\/\^%#@]+/,tokenizer:{root:[[/[a-z_\/$%@]([\w\/$%]|-(?!>))*/,{cases:{"@typeKeywords":"type","@keywords":"keyword","@cdsLanguage":"annotation","@derivedTypes":"type","@builtinFunctions":"type","@builtinMethods":"type","@operators":"key","@default":"identifier"}}],[/<[\w]+>/,"identifier"],[/##[\w|_]+/,"comment"],{include:"@whitespace"},[/[:,.]/,"delimiter"],[/[{}()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@selectors":"tag","@operators":"key","@default":""}}],[/'/,{token:"string",bracket:"@open",next:"@stringquote"}],[/`/,{token:"string",bracket:"@open",next:"@stringping"}],[/\|/,{token:"string",bracket:"@open",next:"@stringtemplate"}],[/\d+/,"number"]],stringtemplate:[[/[^\\\|]+/,"string"],[/\\\|/,"string"],[/\|/,{token:"string",bracket:"@close",next:"@pop"}]],stringping:[[/[^\\`]+/,"string"],[/`/,{token:"string",bracket:"@close",next:"@pop"}]],stringquote:[[/[^\\']+/,"string"],[/'/,{token:"string",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[/^\*.*$/,"comment"],[/\".*$/,"comment"]]}};export{e as conf,t as language};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*!-----------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
4
|
+
* Released under the MIT license
|
|
5
|
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
|
+
*-----------------------------------------------------------------------------*/var n={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],folding:{markers:{start:new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:<editor-fold\\b))"),end:new RegExp("^\\s*//\\s*(?:(?:#?endregion\\b)|(?:</editor-fold>))")}}},s=["abstract","activate","and","any","array","as","asc","assert","autonomous","begin","bigdecimal","blob","boolean","break","bulk","by","case","cast","catch","char","class","collect","commit","const","continue","convertcurrency","decimal","default","delete","desc","do","double","else","end","enum","exception","exit","export","extends","false","final","finally","float","for","from","future","get","global","goto","group","having","hint","if","implements","import","in","inner","insert","instanceof","int","interface","into","join","last_90_days","last_month","last_n_days","last_week","like","limit","list","long","loop","map","merge","native","new","next_90_days","next_month","next_n_days","next_week","not","null","nulls","number","object","of","on","or","outer","override","package","parallel","pragma","private","protected","public","retrieve","return","returning","rollback","savepoint","search","select","set","short","sort","stat","static","strictfp","super","switch","synchronized","system","testmethod","then","this","this_month","this_week","throw","throws","today","tolabel","tomorrow","transaction","transient","trigger","true","try","type","undelete","update","upsert","using","virtual","void","volatile","webservice","when","where","while","yesterday"],o=e=>e.charAt(0).toUpperCase()+e.substr(1),t=[];s.forEach(e=>{t.push(e),t.push(e.toUpperCase()),t.push(o(e))});var i={defaultToken:"",tokenPostfix:".apex",keywords:t,operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+(_+\d+)*/,octaldigits:/[0-7]+(_+[0-7]+)*/,binarydigits:/[0-1]+(_+[0-1]+)*/,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,tokenizer:{root:[[/[a-z_$][\w$]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],[/[A-Z][\w\$]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"type.identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/@\s*[a-zA-Z_\$][\w\$]*/,"annotation"],[/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/,"number.float"],[/(@digits)[fFdD]/,"number.float"],[/(@digits)[lL]?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string",'@string."'],[/'/,"string","@string.'"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@apexdoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],apexdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}]]}};export{n as conf,i as language};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*!-----------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
4
|
+
* Released under the MIT license
|
|
5
|
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
|
+
*-----------------------------------------------------------------------------*/var e={comments:{lineComment:"#"}},t={defaultToken:"keyword",ignoreCase:!0,tokenPostfix:".azcli",str:/[^#\s]/,tokenizer:{root:[{include:"@comment"},[/\s-+@str*\s*/,{cases:{"@eos":{token:"key.identifier",next:"@popall"},"@default":{token:"key.identifier",next:"@type"}}}],[/^-+@str*\s*/,{cases:{"@eos":{token:"key.identifier",next:"@popall"},"@default":{token:"key.identifier",next:"@type"}}}]],type:[{include:"@comment"},[/-+@str*\s*/,{cases:{"@eos":{token:"key.identifier",next:"@popall"},"@default":"key.identifier"}}],[/@str+\s*/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}]],comment:[[/#.*$/,{cases:{"@eos":{token:"comment",next:"@popall"}}}]]}};export{e as conf,t as language};
|