mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 16:29:51 +03:00
Customizations to names with more options
This commit is contained in:
@@ -138,7 +138,7 @@ const SettingsCustomization: FC = () => {
|
||||
|
||||
const saveCustomization = async () => {
|
||||
if (deviceEntities && selectedDevice) {
|
||||
const exclude_entities = deviceEntities.filter((de) => de.x).map((new_de) => new_de.i);
|
||||
const exclude_entities = deviceEntities.filter((de) => de.x).map((new_de) => "07" + new_de.s);
|
||||
try {
|
||||
const response = await EMSESP.writeExcludeEntities({
|
||||
id: selectedDevice,
|
||||
|
||||
@@ -150,7 +150,7 @@ export interface DeviceEntity {
|
||||
|
||||
export interface ExcludeEntities {
|
||||
id: number;
|
||||
entity_ids: number[];
|
||||
entity_ids: string[];
|
||||
}
|
||||
|
||||
export interface UniqueID {
|
||||
|
||||
Reference in New Issue
Block a user