Advertisement
Qba

Powercalc Lookup table not found

Qba
Oct 27th, 2021
1,313
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 7.16 KB | None | 0 0
  1.  power = self.lookup_power(lookup_table, light_setting)
  2.   File "/config/custom_components/powercalc/strategy_lut.py", line 153, in lookup_power
  3.     self.get_nearest_lower_brightness(lookup_table, brightness),
  4.   File "/config/custom_components/powercalc/strategy_lut.py", line 185, in get_nearest_lower_brightness
  5.     last_key = [*keys][-1]
  6. IndexError: list index out of range
  7. 2021-10-27 18:02:18 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
  8. Traceback (most recent call last):
  9.   File "/config/custom_components/powercalc/sensors/power.py", line 204, in appliance_state_listener
  10.     await self._update_power_sensor(new_state)
  11.   File "/config/custom_components/powercalc/sensors/power.py", line 244, in _update_power_sensor
  12.     self._power = await self._power_calculator.calculate(state)
  13.   File "/config/custom_components/powercalc/strategy_lut.py", line 139, in calculate
  14.     power = self.lookup_power(lookup_table, light_setting)
  15.   File "/config/custom_components/powercalc/strategy_lut.py", line 153, in lookup_power
  16.     self.get_nearest_lower_brightness(lookup_table, brightness),
  17.   File "/config/custom_components/powercalc/strategy_lut.py", line 185, in get_nearest_lower_brightness
  18.     last_key = [*keys][-1]
  19. IndexError: list index out of range
  20. 2021-10-27 18:02:20 ERROR (MainThread) [custom_components.powercalc.strategy_lut] Lookup table not found
  21. 2021-10-27 18:02:30 ERROR (MainThread) [custom_components.powercalc.strategy_lut] Lookup table not found
  22. 2021-10-27 18:02:34 ERROR (MainThread) [custom_components.powercalc.strategy_lut] Lookup table not found
  23. 2021-10-27 18:02:41 ERROR (MainThread) [custom_components.powercalc.strategy_lut] Lookup table not found
  24. 2021-10-27 18:02:45 ERROR (MainThread) [custom_components.powercalc.strategy_lut] Lookup table not found
  25. 2021-10-27 18:02:46 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
  26. Traceback (most recent call last):
  27.   File "/config/custom_components/powercalc/sensors/power.py", line 204, in appliance_state_listener
  28.     await self._update_power_sensor(new_state)
  29.   File "/config/custom_components/powercalc/sensors/power.py", line 244, in _update_power_sensor
  30.     self._power = await self._power_calculator.calculate(state)
  31.   File "/config/custom_components/powercalc/strategy_lut.py", line 139, in calculate
  32.     power = self.lookup_power(lookup_table, light_setting)
  33.   File "/config/custom_components/powercalc/strategy_lut.py", line 153, in lookup_power
  34.     self.get_nearest_lower_brightness(lookup_table, brightness),
  35.   File "/config/custom_components/powercalc/strategy_lut.py", line 185, in get_nearest_lower_brightness
  36.     last_key = [*keys][-1]
  37. IndexError: list index out of range
  38. 2021-10-27 18:05:26 ERROR (MainThread) [custom_components.powercalc.strategy_lut] Lookup table not found
  39. 2021-10-27 18:17:26 ERROR (MainThread) [custom_components.powercalc.strategy_lut] Lookup table not found
  40. 2021-10-27 18:24:21 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
  41. Traceback (most recent call last):
  42.   File "/config/custom_components/powercalc/sensors/power.py", line 204, in appliance_state_listener
  43.     await self._update_power_sensor(new_state)
  44.   File "/config/custom_components/powercalc/sensors/power.py", line 244, in _update_power_sensor
  45.     self._power = await self._power_calculator.calculate(state)
  46.   File "/config/custom_components/powercalc/strategy_lut.py", line 139, in calculate
  47.     power = self.lookup_power(lookup_table, light_setting)
  48.   File "/config/custom_components/powercalc/strategy_lut.py", line 153, in lookup_power
  49.     self.get_nearest_lower_brightness(lookup_table, brightness),
  50.   File "/config/custom_components/powercalc/strategy_lut.py", line 185, in get_nearest_lower_brightness
  51.     last_key = [*keys][-1]
  52. IndexError: list index out of range
  53. 2021-10-27 18:24:51 ERROR (MainThread) [custom_components.powercalc.strategy_lut] Lookup table not found
  54. 2021-10-27 18:24:56 ERROR (MainThread) [custom_components.powercalc.strategy_lut] Lookup table not found
  55. 2021-10-27 18:25:02 ERROR (MainThread) [custom_components.powercalc.strategy_lut] Lookup table not found
  56. 2021-10-27 18:25:06 ERROR (MainThread) [custom_components.powercalc.strategy_lut] Lookup table not found
  57. 2021-10-27 18:25:11 ERROR (MainThread) [custom_components.powercalc.strategy_lut] Lookup table not found
  58. 2021-10-27 18:25:12 ERROR (MainThread) [custom_components.powercalc.strategy_lut] Lookup table not found
  59. 2021-10-27 18:25:16 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
  60. Traceback (most recent call last):
  61.   File "/config/custom_components/powercalc/sensors/power.py", line 204, in appliance_state_listener
  62.     await self._update_power_sensor(new_state)
  63.   File "/config/custom_components/powercalc/sensors/power.py", line 244, in _update_power_sensor
  64.     self._power = await self._power_calculator.calculate(state)
  65.   File "/config/custom_components/powercalc/strategy_lut.py", line 139, in calculate
  66.     power = self.lookup_power(lookup_table, light_setting)
  67.   File "/config/custom_components/powercalc/strategy_lut.py", line 153, in lookup_power
  68.     self.get_nearest_lower_brightness(lookup_table, brightness),
  69.   File "/config/custom_components/powercalc/strategy_lut.py", line 185, in get_nearest_lower_brightness
  70.     last_key = [*keys][-1]
  71. IndexError: list index out of range
  72.  
  73. 2021-10-27 18:26:03 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
  74. Traceback (most recent call last):
  75.   File "/config/custom_components/powercalc/sensors/power.py", line 204, in appliance_state_listener
  76.     await self._update_power_sensor(new_state)
  77.   File "/config/custom_components/powercalc/sensors/power.py", line 244, in _update_power_sensor
  78.     self._power = await self._power_calculator.calculate(state)
  79.   File "/config/custom_components/powercalc/strategy_lut.py", line 139, in calculate
  80.     power = self.lookup_power(lookup_table, light_setting)
  81.   File "/config/custom_components/powercalc/strategy_lut.py", line 153, in lookup_power
  82.     self.get_nearest_lower_brightness(lookup_table, brightness),
  83.   File "/config/custom_components/powercalc/strategy_lut.py", line 185, in get_nearest_lower_brightness
  84.     last_key = [*keys][-1]
  85. IndexError: list index out of range
  86. 2021-10-27 18:26:03 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
  87. Traceback (most recent call last):
  88.   File "/config/custom_components/powercalc/sensors/power.py", line 204, in appliance_state_listener
  89.     await self._update_power_sensor(new_state)
  90.   File "/config/custom_components/powercalc/sensors/power.py", line 244, in _update_power_sensor
  91.     self._power = await self._power_calculator.calculate(state)
  92.   File "/config/custom_components/powercalc/strategy_lut.py", line 139, in calculate
  93.     power = self.lookup_power(lookup_table, light_setting)
  94.   File "/config/custom_components/powercalc/strategy_lut.py", line 153, in lookup_power
  95.     self.get_nearest_lower_brightness(lookup_table, brightness),
  96.   File "/config/custom_components/powercalc/strategy_lut.py", line 185, in get_nearest_lower_brightness
  97.     last_key = [*keys][-1]
  98. IndexError: list index out of range
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement