fix incorrect SPEC name

This commit is contained in:
kekeandzeyu 2025-01-14 18:05:11 +08:00
parent cc7cf52b3f
commit 4dba4dabdb

View File

@ -399,7 +399,7 @@ SPEC_PROP_TRANS_MAP: dict[str, dict | str] = {
'unit_of_measurement': UnitOfElectricPotential.VOLT
}
},
'current': {
'electric-current': {
'device_class': SensorDeviceClass.CURRENT,
'entity': 'sensor',
'optional': {
@ -423,7 +423,7 @@ SPEC_PROP_TRANS_MAP: dict[str, dict | str] = {
'unit_of_measurement': UnitOfPower.WATT
}
},
'over-electric-power': {
'surge-power': {
'device_class': SensorDeviceClass.POWER,
'entity': 'sensor',
'optional': {