-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: move to typescript & tidy up some code #56
Conversation
Hi @marksie1988 Thanks for your interest in this project and your suggestions to make this even better. As you can see I'm not a developer and hacked my way through most of this. |
Of course, I'm happy to help. I have one issue to fix that I found after testing my last change but shouldn't be too long until this is ready. |
ok this happens because there is an error check that says if someone doesnt define it in their config it will fail. that happens before the defaults are included, but as there is a default the error is redundant so either the default needs removing if you want the error, or leave the default and remove the error (i would do this as it makes it easier for a user to get up and running) |
Yes that happens because However the error is still redundant due to the default being set. |
OK I've completed all my testing. I think this is ready for merging. Please can you do one last check with the last commit I made |
That logic shouldn't have needed changing. as you only want it to work if it is set to true |
It was messing up the rendering of the additional loads when not set properly and default should be true. |
actually yes you are correct, i was thinking of the |
Ok i have just updated the workflow to publish the docs. It should be good to merge, there may be some tidy up we need to do for all the new backend workflows but we can sort that once we know the errors when it runs (if there are any) |
morning i have a problem i an using soral assistant and pull data in to homeassistant but solar assist is workindg defrend when using power it show negative and when charging shows positive can i switch this uroound in the programming please help |
thanx it worked
…________________________________
From: slipx06 ***@***.***>
Sent: Monday, August 28, 2023 9:20 AM
To: slipx06/sunsynk-power-flow-card ***@***.***>
Cc: wynand64 ***@***.***>; Mention ***@***.***>
Subject: Re: [slipx06/sunsynk-power-flow-card] feat: move to typescript & tidy up some code (PR #56)
@wynand64<https://github.com/wynand64> you can invert this through a card option. See discussion linked below
#66<#66>
—
Reply to this email directly, view it on GitHub<#56 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AY2YB3RYHZ7QQXJBZ3UHHNTXXRBCTANCNFSM6AAAAAA3PY3VJI>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Description
yes/no
options to booleantrue / false
no / one / two / three
to numbers0 / 1 / 2 / 3
hidden
option frombattery.energy
instead use0
to disabledefaults
for settings to stop duplication in codeBreaking changes are noted above with
!
Due to the breaking changes the version will update to
v2.0.0
as per semver versioning standardTODO
To merge this change a few things will need doing with the repository settings:
Enable Github Pages:
The docs use sphinx, which publishes to the
gh-pages
branch and is then hosted on github pages, this needs enabling in the settings of the repo, I think an empty branch calledgh-pages
may also need creating.The documentation workflow allows being run manually or will automatically run when a pull request is merged.
Labels
the following labels should be setup and used on each pull request to auto generate the release notes:
type/dependencies
ordependencies
type/language
orlanguage
type/docs
ordocumentation
semver/patch
ortype/bug
orbug
semver/minor
ortype/feat
orenhancement
semver/major
orflag/breaking changes
Automated release
I have sent you a discord message about automated release which i can add if you want to do it but thats up to you based on what i sent in the message
Related issues
N/A
Motivation and Context
By moving to Typescript:
How has this been tested
I have tested this as much as I can with my setup using a lux inverter, I have not been able to test on a sunsynk inverter so additional resting is advised.
Type of change
Please delete options that are not relevant.
Checklist
package.json
following semver