mirror of
https://github.com/home-assistant/core.git
synced 2025-04-27 02:37:50 +00:00
Added 'nomapnt', 'outcurnt', 'loadapnt' fields (#16176)
* Added 'nomapnt', 'outcurnt', 'loadapnt' fields Also added Ampere and Volt-Ampere to INFERRED_UNITS * Fix lint issue
This commit is contained in:
parent
52e922171d
commit
357e5eadb8
@ -49,6 +49,7 @@ SENSOR_TYPES = {
|
||||
'linefreq': ['Line Frequency', 'Hz', 'mdi:information-outline'],
|
||||
'linev': ['Input Voltage', 'V', 'mdi:flash'],
|
||||
'loadpct': ['Load', '%', 'mdi:gauge'],
|
||||
'loadapnt': ['Load Apparent Power', '%', 'mdi:gauge'],
|
||||
'lotrans': ['Transfer Low', 'V', 'mdi:flash'],
|
||||
'mandate': ['Manufacture Date', '', 'mdi:calendar'],
|
||||
'masterupd': ['Master Update', '', 'mdi:information-outline'],
|
||||
@ -62,7 +63,9 @@ SENSOR_TYPES = {
|
||||
'nominv': ['Nominal Input Voltage', 'V', 'mdi:flash'],
|
||||
'nomoutv': ['Nominal Output Voltage', 'V', 'mdi:flash'],
|
||||
'nompower': ['Nominal Output Power', 'W', 'mdi:flash'],
|
||||
'nomapnt': ['Nominal Apparent Power', 'VA', 'mdi:flash'],
|
||||
'numxfers': ['Transfer Count', '', 'mdi:counter'],
|
||||
'outcurnt': ['Output Current', 'A', 'mdi:flash'],
|
||||
'outputv': ['Output Voltage', 'V', 'mdi:flash'],
|
||||
'reg1': ['Register 1 Fault', '', 'mdi:information-outline'],
|
||||
'reg2': ['Register 2 Fault', '', 'mdi:information-outline'],
|
||||
@ -93,6 +96,8 @@ INFERRED_UNITS = {
|
||||
' Seconds': 'sec',
|
||||
' Percent': '%',
|
||||
' Volts': 'V',
|
||||
' Ampere': 'A',
|
||||
' Volt-Ampere': 'VA',
|
||||
' Watts': 'W',
|
||||
' Hz': 'Hz',
|
||||
' C': TEMP_CELSIUS,
|
||||
|
Loading…
x
Reference in New Issue
Block a user