Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- power = self.lookup_power(lookup_table, light_setting)
- File "/config/custom_components/powercalc/strategy_lut.py", line 153, in lookup_power
- self.get_nearest_lower_brightness(lookup_table, brightness),
- File "/config/custom_components/powercalc/strategy_lut.py", line 185, in get_nearest_lower_brightness
- last_key = [*keys][-1]
- IndexError: list index out of range
- 2021-10-27 18:02:18 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
- Traceback (most recent call last):
- File "/config/custom_components/powercalc/sensors/power.py", line 204, in appliance_state_listener
- await self._update_power_sensor(new_state)
- File "/config/custom_components/powercalc/sensors/power.py", line 244, in _update_power_sensor
- self._power = await self._power_calculator.calculate(state)
- File "/config/custom_components/powercalc/strategy_lut.py", line 139, in calculate
- power = self.lookup_power(lookup_table, light_setting)
- File "/config/custom_components/powercalc/strategy_lut.py", line 153, in lookup_power
- self.get_nearest_lower_brightness(lookup_table, brightness),
- File "/config/custom_components/powercalc/strategy_lut.py", line 185, in get_nearest_lower_brightness
- last_key = [*keys][-1]
- IndexError: list index out of range
- 2021-10-27 18:02:20 ERROR (MainThread) [custom_components.powercalc.strategy_lut] Lookup table not found
- 2021-10-27 18:02:30 ERROR (MainThread) [custom_components.powercalc.strategy_lut] Lookup table not found
- 2021-10-27 18:02:34 ERROR (MainThread) [custom_components.powercalc.strategy_lut] Lookup table not found
- 2021-10-27 18:02:41 ERROR (MainThread) [custom_components.powercalc.strategy_lut] Lookup table not found
- 2021-10-27 18:02:45 ERROR (MainThread) [custom_components.powercalc.strategy_lut] Lookup table not found
- 2021-10-27 18:02:46 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
- Traceback (most recent call last):
- File "/config/custom_components/powercalc/sensors/power.py", line 204, in appliance_state_listener
- await self._update_power_sensor(new_state)
- File "/config/custom_components/powercalc/sensors/power.py", line 244, in _update_power_sensor
- self._power = await self._power_calculator.calculate(state)
- File "/config/custom_components/powercalc/strategy_lut.py", line 139, in calculate
- power = self.lookup_power(lookup_table, light_setting)
- File "/config/custom_components/powercalc/strategy_lut.py", line 153, in lookup_power
- self.get_nearest_lower_brightness(lookup_table, brightness),
- File "/config/custom_components/powercalc/strategy_lut.py", line 185, in get_nearest_lower_brightness
- last_key = [*keys][-1]
- IndexError: list index out of range
- 2021-10-27 18:05:26 ERROR (MainThread) [custom_components.powercalc.strategy_lut] Lookup table not found
- 2021-10-27 18:17:26 ERROR (MainThread) [custom_components.powercalc.strategy_lut] Lookup table not found
- 2021-10-27 18:24:21 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
- Traceback (most recent call last):
- File "/config/custom_components/powercalc/sensors/power.py", line 204, in appliance_state_listener
- await self._update_power_sensor(new_state)
- File "/config/custom_components/powercalc/sensors/power.py", line 244, in _update_power_sensor
- self._power = await self._power_calculator.calculate(state)
- File "/config/custom_components/powercalc/strategy_lut.py", line 139, in calculate
- power = self.lookup_power(lookup_table, light_setting)
- File "/config/custom_components/powercalc/strategy_lut.py", line 153, in lookup_power
- self.get_nearest_lower_brightness(lookup_table, brightness),
- File "/config/custom_components/powercalc/strategy_lut.py", line 185, in get_nearest_lower_brightness
- last_key = [*keys][-1]
- IndexError: list index out of range
- 2021-10-27 18:24:51 ERROR (MainThread) [custom_components.powercalc.strategy_lut] Lookup table not found
- 2021-10-27 18:24:56 ERROR (MainThread) [custom_components.powercalc.strategy_lut] Lookup table not found
- 2021-10-27 18:25:02 ERROR (MainThread) [custom_components.powercalc.strategy_lut] Lookup table not found
- 2021-10-27 18:25:06 ERROR (MainThread) [custom_components.powercalc.strategy_lut] Lookup table not found
- 2021-10-27 18:25:11 ERROR (MainThread) [custom_components.powercalc.strategy_lut] Lookup table not found
- 2021-10-27 18:25:12 ERROR (MainThread) [custom_components.powercalc.strategy_lut] Lookup table not found
- 2021-10-27 18:25:16 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
- Traceback (most recent call last):
- File "/config/custom_components/powercalc/sensors/power.py", line 204, in appliance_state_listener
- await self._update_power_sensor(new_state)
- File "/config/custom_components/powercalc/sensors/power.py", line 244, in _update_power_sensor
- self._power = await self._power_calculator.calculate(state)
- File "/config/custom_components/powercalc/strategy_lut.py", line 139, in calculate
- power = self.lookup_power(lookup_table, light_setting)
- File "/config/custom_components/powercalc/strategy_lut.py", line 153, in lookup_power
- self.get_nearest_lower_brightness(lookup_table, brightness),
- File "/config/custom_components/powercalc/strategy_lut.py", line 185, in get_nearest_lower_brightness
- last_key = [*keys][-1]
- IndexError: list index out of range
- 2021-10-27 18:26:03 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
- Traceback (most recent call last):
- File "/config/custom_components/powercalc/sensors/power.py", line 204, in appliance_state_listener
- await self._update_power_sensor(new_state)
- File "/config/custom_components/powercalc/sensors/power.py", line 244, in _update_power_sensor
- self._power = await self._power_calculator.calculate(state)
- File "/config/custom_components/powercalc/strategy_lut.py", line 139, in calculate
- power = self.lookup_power(lookup_table, light_setting)
- File "/config/custom_components/powercalc/strategy_lut.py", line 153, in lookup_power
- self.get_nearest_lower_brightness(lookup_table, brightness),
- File "/config/custom_components/powercalc/strategy_lut.py", line 185, in get_nearest_lower_brightness
- last_key = [*keys][-1]
- IndexError: list index out of range
- 2021-10-27 18:26:03 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
- Traceback (most recent call last):
- File "/config/custom_components/powercalc/sensors/power.py", line 204, in appliance_state_listener
- await self._update_power_sensor(new_state)
- File "/config/custom_components/powercalc/sensors/power.py", line 244, in _update_power_sensor
- self._power = await self._power_calculator.calculate(state)
- File "/config/custom_components/powercalc/strategy_lut.py", line 139, in calculate
- power = self.lookup_power(lookup_table, light_setting)
- File "/config/custom_components/powercalc/strategy_lut.py", line 153, in lookup_power
- self.get_nearest_lower_brightness(lookup_table, brightness),
- File "/config/custom_components/powercalc/strategy_lut.py", line 185, in get_nearest_lower_brightness
- last_key = [*keys][-1]
- IndexError: list index out of range
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement