def get_data_point(control: ControlUnit, entity_id: str):
    """Get the data point by entity id."""
    for dp in control.central.get_data_points():
        if dp.custom_id == entity_id:
            return dp
    for dp in control.central.get_hub_data_points():
        if dp.custom_id == entity_id:
            return dp
Get the data point by entity id.
tests/helper.py