mirror of
https://github.com/esphome/esphome.git
synced 2025-09-05 21:02:20 +01:00
Atmel M90E32AS Energy Metering IC. Found in CircuitSetup 2chan and 6chan energy meterss (#629)
* Atmel M90E32AS Energy Metering IC. Found in CircuitSetup 2can and 6chan energy meters * fix style bugs * Update esphome/components/atm90e32/atm90e32.cpp Co-Authored-By: Otto Winter <otto@otto-winter.com> * Properly put atm90e32_reg in namespace * Use phase grouped config like ina3221 * Log why the component is marked failed, did not read back our register value * 32bit register reads are 2s compliment * Fix atm90e32 option name in test * clang-format changes from travis-ci * use new protected method names * Whitespace changes to please Travis * Update esphome/components/atm90e32/atm90e32.cpp Co-Authored-By: Otto Winter <otto@otto-winter.com> * Fix up type change for val_h/val_l * Remove conditions around values with defaults * Rename constants to match their value * Remove 2's complement check Co-authored-by: Andrew Thompson <andrew@whosonlocation.com> Co-authored-by: Otto Winter <otto@otto-winter.com>
This commit is contained in:
committed by
Otto Winter
parent
7abe8875bd
commit
db968bc6b0
@@ -492,6 +492,7 @@ UNIT_DECIBEL = 'dB'
|
||||
UNIT_DEGREES = u'°'
|
||||
UNIT_DEGREE_PER_SECOND = u'°/s'
|
||||
UNIT_EMPTY = ''
|
||||
UNIT_HZ = 'hz'
|
||||
UNIT_HECTOPASCAL = 'hPa'
|
||||
UNIT_KELVIN = 'K'
|
||||
UNIT_LUX = 'lx'
|
||||
|
Reference in New Issue
Block a user