We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72eeca0 commit 9fb37ceCopy full SHA for 9fb37ce
predbat.py
@@ -826,7 +826,9 @@ def update_pred(self):
826
827
# Octopus intelligent slots
828
if 'octopus_intelligent_slot' in self.args:
829
- self.octopus_slots = self.get_state(entity_id = self.args['octopus_intelligent_slot'], attribute='completedDispatches')
+ completed = self.get_state(entity_id = self.args['octopus_intelligent_slot'], attribute='completedDispatches')
830
+ if completed:
831
+ self.octopus_slots += planned
832
planned = self.get_state(entity_id = self.args['octopus_intelligent_slot'], attribute='plannedDispatches')
833
if planned:
834
self.octopus_slots += planned
0 commit comments