Repository navigation
PV/Speicher/Verbraucher: nach 60s Fehler auf 0 setzen #4002
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
Open
seaspotter
wants to merge
12
commits into
openWB:master
Choose a base branch
from
seaspotter:pv-bat-consumer-error-zero
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,022
−51
Open
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
23b5767
PV/Speicher/Verbraucher: nach 60s Fehler nicht mehr mit altem Wert re…
seaspotter f6d1f4d
PV/Speicher/Verbraucher konsistent mit Zähler/Ladepunkt: nach 60s Feh…
seaspotter 27ec7ca
pv/bat/consumer: set/error_timer wurde nie validiert/geroutet, dadurc…
seaspotter fd97052
consumer: get/power ohne MQTT-Topic-Metadaten, dadurch nie an Broker/…
seaspotter 792f706
counter: MAX_EVU_ERROR_DURATION-Alias entfernt, direkt COMPONENT_ERRO…
seaspotter ebe66ce
Kostal Plenticore, Fronius HTTP API: Fehlerzustand pro Komponente iso…
seaspotter b2d8aa0
PV/Bat/Consumer: Leistung nach andauerndem Fehler im Lese-Zyklus nullen
seaspotter fb7b2c7
store: Nullung funktioniert auch ohne vorherigen erfolgreichen Read
seaspotter 0f3ded1
Merge remote-tracking branch 'origin/master' into pv-bat-consumer-err…
seaspotter 34a83ac
Merge origin/master, Konflikte mit evu_power/plug_state-Feldern auflösen
seaspotter a507dfa
Merge upstream/master: sim_counter-Fallback in ConfigurableConsumer.u…
seaspotter 4750816
Merge upstream/master: resolve setdata.py conflict (consumer-topic gu…
seaspotter File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| from control import data | ||
| from control.consumer.consumer import Consumer | ||
| from control.consumer.consumer_all import AllConsumers | ||
|
|
||
|
|
||
| def test_get_consumer_sum_sums_power(data_): | ||
| # setup - Fehlerfall ist bereits vom Modul selbst abgebildet, get_consumer_sum() summiert nur noch | ||
| data.data.consumer_data = {"consumer1": Consumer(1), "consumer2": Consumer(2)} | ||
| data.data.consumer_data["consumer1"].data.get.power = 500 | ||
| data.data.consumer_data["consumer2"].data.get.power = 2000 | ||
| all_consumers = AllConsumers() | ||
|
|
||
| # execution | ||
| all_consumers.get_consumer_sum() | ||
|
|
||
| # evaluation | ||
| assert all_consumers.data.get.power == 2500 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.