Fix for 'list index out of range' (#54588)

This commit is contained in:
Duco Sebel 2021-08-13 17:03:13 +02:00 committed by GitHub
parent 029873a088
commit 3454102dc8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,6 +50,7 @@ SENSOR_TYPES = {
ELECTRIC_POTENTIAL_VOLT, ELECTRIC_POTENTIAL_VOLT,
"mdi:current-ac", "mdi:current-ac",
None, None,
None,
], ],
"current_DC_voltage": [ "current_DC_voltage": [
"dcvoltage", "dcvoltage",
@ -57,6 +58,7 @@ SENSOR_TYPES = {
ELECTRIC_POTENTIAL_VOLT, ELECTRIC_POTENTIAL_VOLT,
"mdi:current-dc", "mdi:current-dc",
None, None,
None,
], ],
"current_frequency": [ "current_frequency": [
"gridfrequency", "gridfrequency",