@@ -68,53 +68,53 @@ class HoneyInstrumentsSensorDescription(SensorEntityDescription):
6868 value_fn = lambda d : d .get ("weightVar7j" ),
6969 ),
7070 HoneyInstrumentsSensorDescription (
71- key = "temperature" ,
72- translation_key = "temperature" ,
73- native_unit_of_measurement = UnitOfTemperature .CELSIUS ,
74- device_class = SensorDeviceClass .TEMPERATURE ,
75- state_class = SensorStateClass .MEASUREMENT ,
76- value_fn = lambda d : d .get ("temperature" ),
77- ),
78- HoneyInstrumentsSensorDescription (
79- key = "battery_voltage" ,
80- translation_key = "battery_voltage" ,
81- native_unit_of_measurement = UnitOfElectricPotential .MILLIVOLT ,
82- device_class = SensorDeviceClass .VOLTAGE ,
71+ key = "internal_humidity" ,
72+ translation_key = "internal_humidity" ,
73+ native_unit_of_measurement = PERCENTAGE ,
74+ device_class = SensorDeviceClass .HUMIDITY ,
8375 state_class = SensorStateClass .MEASUREMENT ,
84- value_fn = lambda d : d .get ("batVoltage " ),
76+ value_fn = lambda d : ( d .get ("sensor" ) or {}). get ( "hygrometry " ),
8577 ),
8678 HoneyInstrumentsSensorDescription (
87- key = "signal_strength " ,
88- translation_key = "signal_strength " ,
89- native_unit_of_measurement = SIGNAL_STRENGTH_DECIBELS ,
90- device_class = SensorDeviceClass .SIGNAL_STRENGTH ,
79+ key = "internal_temperature " ,
80+ translation_key = "internal_temperature " ,
81+ native_unit_of_measurement = UnitOfTemperature . CELSIUS ,
82+ device_class = SensorDeviceClass .TEMPERATURE ,
9183 state_class = SensorStateClass .MEASUREMENT ,
92- value_fn = lambda d : d .get ("signal " ),
84+ value_fn = lambda d : ( d .get ("sensor" ) or {}). get ( "temperature " ),
9385 ),
9486 HoneyInstrumentsSensorDescription (
9587 key = "external_temperature" ,
9688 translation_key = "external_temperature" ,
9789 native_unit_of_measurement = UnitOfTemperature .CELSIUS ,
9890 device_class = SensorDeviceClass .TEMPERATURE ,
9991 state_class = SensorStateClass .MEASUREMENT ,
100- value_fn = lambda d : ( d . get ( "sensor" ) or {}) .get ("temperature" ),
92+ value_fn = lambda d : d .get ("temperature" ),
10193 ),
10294 HoneyInstrumentsSensorDescription (
103- key = "external_humidity " ,
104- translation_key = "external_humidity " ,
105- native_unit_of_measurement = PERCENTAGE ,
106- device_class = SensorDeviceClass .HUMIDITY ,
95+ key = "balance_battery_voltage " ,
96+ translation_key = "balance_battery_voltage " ,
97+ native_unit_of_measurement = UnitOfElectricPotential . MILLIVOLT ,
98+ device_class = SensorDeviceClass .VOLTAGE ,
10799 state_class = SensorStateClass .MEASUREMENT ,
108- value_fn = lambda d : ( d .get ("sensor" ) or {}). get ( "hygrometry " ),
100+ value_fn = lambda d : d .get ("batVoltage " ),
109101 ),
110102 HoneyInstrumentsSensorDescription (
111- key = "external_battery_voltage " ,
112- translation_key = "external_battery_voltage " ,
103+ key = "sensor_battery_voltage " ,
104+ translation_key = "sensor_battery_voltage " ,
113105 native_unit_of_measurement = UnitOfElectricPotential .MILLIVOLT ,
114106 device_class = SensorDeviceClass .VOLTAGE ,
115107 state_class = SensorStateClass .MEASUREMENT ,
116108 value_fn = lambda d : (d .get ("sensor" ) or {}).get ("batVoltage" ),
117109 ),
110+ HoneyInstrumentsSensorDescription (
111+ key = "signal_strength" ,
112+ translation_key = "signal_strength" ,
113+ native_unit_of_measurement = SIGNAL_STRENGTH_DECIBELS ,
114+ device_class = SensorDeviceClass .SIGNAL_STRENGTH ,
115+ state_class = SensorStateClass .MEASUREMENT ,
116+ value_fn = lambda d : d .get ("signal" ),
117+ ),
118118)
119119
120120
0 commit comments