mirror of
https://github.com/andvikt/mega_hacs.git
synced 2025-12-14 18:44:27 +05:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d94efbe1a7 |
@@ -6,6 +6,7 @@ from homeassistant.const import (
|
|||||||
DEVICE_CLASS_TEMPERATURE,
|
DEVICE_CLASS_TEMPERATURE,
|
||||||
DEVICE_CLASS_ILLUMINANCE,
|
DEVICE_CLASS_ILLUMINANCE,
|
||||||
DEVICE_CLASS_PRESSURE,
|
DEVICE_CLASS_PRESSURE,
|
||||||
|
DEVICE_CLASS_CO2,
|
||||||
PERCENTAGE,
|
PERCENTAGE,
|
||||||
LIGHT_LUX,
|
LIGHT_LUX,
|
||||||
TEMP_CELSIUS,
|
TEMP_CELSIUS,
|
||||||
@@ -123,9 +124,21 @@ i2c_classes = {
|
|||||||
DeviceType(DEVICE_CLASS_TEMPERATURE, TEMP_CELSIUS, None), # сенсор встроенный в микросхему
|
DeviceType(DEVICE_CLASS_TEMPERATURE, TEMP_CELSIUS, None), # сенсор встроенный в микросхему
|
||||||
],
|
],
|
||||||
't67xx': [
|
't67xx': [
|
||||||
DeviceType(None, CONCENTRATION_PARTS_PER_MILLION, None) # для co2 нет класса в HA
|
DeviceType(DEVICE_CLASS_CO2, CONCENTRATION_PARTS_PER_MILLION, None)
|
||||||
],
|
],
|
||||||
'tmp117': [
|
'tmp117': [
|
||||||
DeviceType(DEVICE_CLASS_TEMPERATURE, TEMP_CELSIUS, None),
|
DeviceType(DEVICE_CLASS_TEMPERATURE, TEMP_CELSIUS, None),
|
||||||
]
|
],
|
||||||
|
'ads1115': [
|
||||||
|
DeviceType(None, None, 'ch0'),
|
||||||
|
DeviceType(None, None, 'ch1'),
|
||||||
|
DeviceType(None, None, 'ch2'),
|
||||||
|
DeviceType(None, None, 'ch3'),
|
||||||
|
],
|
||||||
|
'ads1015': [
|
||||||
|
DeviceType(None, None, 'ch0'),
|
||||||
|
DeviceType(None, None, 'ch1'),
|
||||||
|
DeviceType(None, None, 'ch2'),
|
||||||
|
DeviceType(None, None, 'ch3'),
|
||||||
|
],
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user