mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-08 08:49:52 +03:00
merge with MichaelDvP's PR 870 - https://github.com/emsesp/EMS-ESP32/pull/870
This commit is contained in:
@@ -84,6 +84,7 @@ const DashboardData: FC = () => {
|
||||
const [coreData, setCoreData] = useState<CoreData>({
|
||||
connected: true,
|
||||
devices: [],
|
||||
s_n: '',
|
||||
active_sensors: 0,
|
||||
analog_enabled: false
|
||||
});
|
||||
@@ -721,7 +722,7 @@ const DashboardData: FC = () => {
|
||||
<Cell>
|
||||
<DeviceIcon type_id={1} />
|
||||
</Cell>
|
||||
<Cell>Sensors</Cell>
|
||||
<Cell>{coreData.s_n}</Cell>
|
||||
<Cell>{LL.ATTACHED_SENSORS()}</Cell>
|
||||
<Cell>{coreData.active_sensors}</Cell>
|
||||
<Cell>
|
||||
|
||||
@@ -102,6 +102,7 @@ export interface SensorData {
|
||||
export interface CoreData {
|
||||
connected: boolean;
|
||||
devices: Device[];
|
||||
s_n: string;
|
||||
active_sensors: number;
|
||||
analog_enabled: boolean;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user