From c8ea9fdd2c88a46882208bae1e877a5a7194d910 Mon Sep 17 00:00:00 2001 From: dckiller51 <53062806+dckiller51@users.noreply.github.com> Date: Mon, 18 Jan 2021 00:53:45 +0100 Subject: [PATCH] Update readme and version --- README.md | 17 +++++++++++++++++ custom_components/bodymiscale/const.py | 2 +- .../bodymiscale/translations/en.json | 9 +++++++++ 3 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 custom_components/bodymiscale/translations/en.json diff --git a/README.md b/README.md index 6a7b35f..da935c4 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,8 @@ The generated data is : - Protein - Body type +************* + ## Installation - You can install it manually. Simply copy and paste the contents of the @@ -51,6 +53,8 @@ The generated data is : For example, you will get the file `__init __.Py` in the following path: `/config/custom_components/bodymiscale/__init__. py`. +************* + ## Configuration key | type | description :--- | :--- | :--- @@ -63,6 +67,8 @@ key | type | description **gender (Required)** | string | female or male. `"male"` **Model (Optional)** | string | Define the scale model.`"181D"` or `"181B"`. +************* + ## Example **Configuration YAML** ```yaml @@ -91,3 +97,14 @@ aurelien: gender: "male" model_miscale: "181B" ``` + +************* + +**VERSION** + +**0.0.2** + +Implantation of calculations. Thanks to lolouk44. I took the liberty of taking back these files. + +**0.0.1** +First version. Thanks to the designer of the component plant of homeassisant. \ No newline at end of file diff --git a/custom_components/bodymiscale/const.py b/custom_components/bodymiscale/const.py index 9050d3a..c4353e7 100644 --- a/custom_components/bodymiscale/const.py +++ b/custom_components/bodymiscale/const.py @@ -2,7 +2,7 @@ # Base component constants NAME = "Body Xiaomi Miscale Esphome" DOMAIN = "bodymiscale" -VERSION = "0.0.1" +VERSION = "0.0.2" ISSUE_URL = "https://github.com/dckiller51/bodymiscale/issues" DOC_URL = "https://github.com/dckiller51/bodymiscale" diff --git a/custom_components/bodymiscale/translations/en.json b/custom_components/bodymiscale/translations/en.json new file mode 100644 index 0000000..e3c4100 --- /dev/null +++ b/custom_components/bodymiscale/translations/en.json @@ -0,0 +1,9 @@ +{ + "state": { + "_": { + "ok": "OK", + "problem": "Problem" + } + }, + "title": "Bodymiscale" +} \ No newline at end of file