Skip to content

Local test of changes in library.json? #536

Answered by andrew-codechimp
o0shojo0o asked this question in Q&A
Discussion options

You must be logged in to vote

The library.json get's updated/overwritten every time you start HA but I've created myself a little test way of doing this.

Within your configuration.yaml add this

battery_notes:
  user_library: "library-dev.json"

Then create a new file in custom_components/battery_notes/data called library-dev.json with contents like below, replacing the details with your own.

{
    "$schema": "../schema.json",
    "version": 1,
    "devices": [
        {
            "manufacturer": "Met.no",
            "model": "Forecast",
            "battery_type": "AA",
            "battery_quantity": 2
        }
    ]
}

Delete your existing battery note for the device you want to test, restart HA and anything in…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@o0shojo0o
Comment options

@andrew-codechimp
Comment options

Answer selected by o0shojo0o
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants