Skip to content

Commit

Permalink
drop Service: listing from UISensor
Browse files Browse the repository at this point in the history
  • Loading branch information
Habbie committed Jan 25, 2025
1 parent 2ad51bb commit 72b20b1
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/uicomponents/UIComponents.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -222,14 +222,6 @@ UISensor::UISensor(std::shared_ptr<HAEntity> _entity, lv_obj_t* _parent, std::st
lv_obj_set_align(extratext2, LV_ALIGN_RIGHT_MID);
lv_obj_set_style_text_align(extratext2, LV_TEXT_ALIGN_RIGHT, LV_PART_MAIN);

const auto& services = _entity->getServices();
for (const auto& service : services) {
string txt = "Service: ";
lv_obj_t* servicelabel = createLabel(textpart, txt.append(service->name));
lv_obj_set_width(servicelabel, LV_PCT(100));
lv_obj_set_align(servicelabel, LV_ALIGN_LEFT_MID);
}

update();
};

Expand Down

0 comments on commit 72b20b1

Please sign in to comment.