Skip to content

Commit bbf4431

Browse files
committed
allow change customization device without reboot
1 parent c38ad8e commit bbf4431

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

interface/src/project/SettingsCustomization.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ const SettingsCustomization: FC = () => {
244244
const selected_device = parseInt(event.target.value, 10);
245245
setSelectedDevice(selected_device);
246246
fetchDeviceEntities(devices?.devices[selected_device].i);
247+
setRestartNeeded(false);
247248
}
248249
};
249250

src/web/WebCustomizationService.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,7 @@ void WebCustomizationService::custom_entities(AsyncWebServerRequest * request, J
269269
bool is_set = false;
270270
for (const JsonVariant id : entity_ids_json) {
271271
std::string id_s = id.as<std::string>();
272-
id_s = DeviceValue::get_name(id_s);
273-
if (id_s == name) {
272+
if (name == DeviceValue::get_name(id_s)) {
274273
is_set = true;
275274
need_reboot = true;
276275
break;

0 commit comments

Comments
 (0)